HttpRequestOptions.IReadOnlyDictionary<String,Object>.TryGetValue Méthode

Définition

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

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

Paramètres

key
String

Clé à localiser.

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 value paramètre. Ce paramètre est passé non initialisé.

Retours

true si l’instance HttpRequestOptions contient un élément avec la clé spécifiée ; sinon, false.

S’applique à