GraphPathSerializationDictionary.TryGetValue(String, String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la valeur associée à la clé spécifiée.
public:
virtual bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] System::String ^ % value);
public bool TryGetValue (string key, out string value);
abstract member TryGetValue : string * string -> bool
override this.TryGetValue : string * string -> bool
Public Function TryGetValue (key As String, ByRef value As String) As Boolean
Paramètres
- key
- String
Clé dont la valeur doit être obtenue.
- value
- String
Quand cette méthode retourne une valeur, valeur associée à la clé spécifiée, si la clé est trouvée ; sinon, valeur par défaut du type du paramètre de valeur. Ce paramètre est passé sans être initialisé.
Retours
True si l’objet qui implémente System. Collections. Generic. IDictionary contient un élément avec la clé spécifiée ; Sinon, false.
Exceptions
key a la valeur null.