SymbolResolver.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, valeur par défaut pour le type du paramètre valeur. Ce paramètre est passé non initialisé.

Retours

true si le SymbolResolver contient un élément avec la clé spécifiée ; sinon, false.

S’applique à