Partager via


DataPackagePropertySetView.TryGetValue(String, Object) Méthode

Définition

Obtient la valeur associée à la clé spécifiée.

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

Paramètres

key
String

Clé de la valeur à obtenir.

value
Object

Lorsque cette méthode est retournée, contient la valeur si la clé a été trouvée ; sinon, valeur par défaut.

Retours

S’applique à