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 포함합니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.

반품

true 구현 IDictionary<TKey,TValue> 하는 개체에 지정된 키가 있는 요소가 포함되어 있으면 이고, false그렇지 않으면 입니다.

적용 대상