ObjectPropertyProvider.TryGetPropertyValue Metodo

Definizione

Recupera un valore che indica se il valore della proprietà si trova nella proprietà dell'oggetto.

Overload

TryGetPropertyValue(String, Object)

Recupera un valore che indica il valore della proprietà da ottenere. La classe non può essere ereditata.

TryGetPropertyValue<T>(String, T)

Recupera un valore che indica se il valore della proprietà si trova nella proprietà dell'oggetto. La classe non può essere ereditata.

TryGetPropertyValue(String, Object)

Recupera un valore che indica il valore della proprietà da ottenere. La classe non può essere ereditata.

public:
 virtual bool TryGetPropertyValue(System::String ^ name, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool TryGetPropertyValue (string name, out object value);
abstract member TryGetPropertyValue : string * obj -> bool
override this.TryGetPropertyValue : string * obj -> bool
Public Function TryGetPropertyValue (name As String, ByRef value As Object) As Boolean

Parametri

name
String

Stringa che rappresenta il nome della proprietà.

value
Object

Oggetto che rappresenta il valore della proprietà.

Restituisce

true per il valore che indica il valore della proprietà da ottenere nella proprietà dell'oggetto; in caso contrario, false.

Implementazioni

Si applica a

TryGetPropertyValue<T>(String, T)

Recupera un valore che indica se il valore della proprietà si trova nella proprietà dell'oggetto. La classe non può essere ereditata.

public:
generic <typename T>
 virtual bool TryGetPropertyValue(System::String ^ name, [Runtime::InteropServices::Out] T % value);
public bool TryGetPropertyValue<T> (string name, out T value);
abstract member TryGetPropertyValue : string * 'T -> bool
override this.TryGetPropertyValue : string * 'T -> bool
Public Function TryGetPropertyValue(Of T) (name As String, ByRef value As T) As Boolean

Parametri di tipo

T

Tipo generico del valore.

Parametri

name
String

Nome della proprietà.

value
T

Oggetto che rappresenta il valore della proprietà.

Restituisce

true se il valore della proprietà si trova nella proprietà dell'oggetto; in caso contrario, false.

Implementazioni

Si applica a