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

定義

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

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

パラメーター

key
String

検索するキー。

value
TValue

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

返品

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

実装

適用対象