AdditionalPropertiesDictionary<TValue>.IDictionary<String,TValue>.TryGetValue メソッド

定義

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

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

パラメーター

key
String

取得する値を持つキー。

value
TValue

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

返品

true IDictionary<TKey,TValue>を実装するオブジェクトに、指定したキーを持つ要素が含まれている場合は。それ以外の場合はfalse

実装

適用対象