Langue

ObjectPath.TryResolvePath(Object, String, List<Object>, Boolean) Méthode

Définition

Étant donné un objet racine et un chemin de propriété, on résout à une constante si eval = vrai ou à un chemin constant autrement.
Conversation[user.name][user.age] => ['Conversation', 'Joe', 32].

public static bool TryResolvePath(object obj, string propertyPath, out System.Collections.Generic.List<object> segments, bool eval = false);
static member TryResolvePath : obj * string * List * bool -> bool
Public Shared Function TryResolvePath (obj As Object, propertyPath As String, ByRef segments As List(Of Object), Optional eval As Boolean = false) As Boolean

Paramètres

obj
Object

objet racine.

propertyPath
String

chemin d’accès de propriété à résoudre.

segments
List<Object>

Segments de chemin.

eval
Boolean

True pour évaluer les segments résultants.

Retours

True si elle a pu résoudre toutes les références imbriquées.

S’applique à