Condividi tramite


ObjectPath.GetPathValue Metodo

Definizione

Overload

GetPathValue<T>(Object, String)

Ottenere il valore per un percorso relativo a un oggetto.

GetPathValue<T>(Object, String, T)

Ottenere il valore per un percorso relativo a un oggetto.

GetPathValue<T>(Object, String)

Ottenere il valore per un percorso relativo a un oggetto.

public static T GetPathValue<T>(object obj, string path);
static member GetPathValue : obj * string -> 'T
Public Shared Function GetPathValue(Of T) (obj As Object, path As String) As T

Parametri di tipo

T

digitare da restituire.

Parametri

obj
Object

oggetto con cui iniziare.

path
String

percorso da valutare.

Restituisce

T

valore o default(T).

Si applica a

GetPathValue<T>(Object, String, T)

Ottenere il valore per un percorso relativo a un oggetto.

public static T GetPathValue<T>(object obj, string path, T defaultValue);
static member GetPathValue : obj * string * 'T -> 'T
Public Shared Function GetPathValue(Of T) (obj As Object, path As String, defaultValue As T) As T

Parametri di tipo

T

digitare da restituire.

Parametri

obj
Object

oggetto con cui iniziare.

path
String

percorso da valutare.

defaultValue
T

valore predefinito da usare se manca una parte del percorso.

Restituisce

T

valore o default(T).

Si applica a