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

適用対象