Partager via


PropertyDictionary.TryGetPropertyValue Méthode

Définition

Détermine une valeur qui indique une propriété à obtenir.

Surcharges

TryGetPropertyValue(String, Object)

Récupère une valeur qui indique une propriété à obtenir.

TryGetPropertyValue<T>(String, T)

Récupère une valeur qui indique une propriété à obtenir à l'aide d'une liste d'éléments.

TryGetPropertyValue(String, Object)

Récupère une valeur qui indique une propriété à obtenir.

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

Paramètres

name
String

Entrée de chaîne qui représente le nom de la propriété.

value
Object

Objet de la propriété à obtenir.

Retours

true si une valeur indique une propriété à obtenir ; sinon, false.

Implémente

S’applique à

TryGetPropertyValue<T>(String, T)

Récupère une valeur qui indique une propriété à obtenir à l'aide d'une liste d'éléments.

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

Paramètres de type

T

Valeur générique de l’élément.

Paramètres

name
String

Valeur de chaîne qui représente le nom de la propriété à obtenir.

value
T

Valeur spécifiée pour l'élément.

Retours

true si une valeur indique une propriété à obtenir à l'aide d'une liste d'éléments ; sinon, false.

Implémente

S’applique à