Langue

NameScope.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 associée à la clé spécifiée, si la clé est trouvée ; sinon, un objet Null. Ce paramètre est passé non initialisé.

Retours

true si le NameScope fichier contient un mappage pour le nom fourni en tant que key. Sinon, false.

S’applique à