HttpRequestOptions.IReadOnlyDictionary<String,Object>.TryGetValue メソッド

定義

指定されたキーに関連付けられている値を取得します。

 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

パラメーター

key
String

検索するキー。

value
Object

このメソッドから制御が戻るときに、キーが見つかった場合は、指定したキーに関連付けられている値が格納されます。それ以外の場合は value パラメーターの型に対する既定の値。 このパラメーターは初期化せずに渡されます。

戻り値

true インスタンスに HttpRequestOptions 指定されたキーを持つ要素が含まれている場合は 。それ以外の場合 falseは 。

適用対象