ExpandoObject.IDictionary<String,Object>.TryGetValue メソッド

定義

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

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

パラメーター

key
String

取得する値のキー。

value
Object

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

戻り値

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

適用対象