ExpandoObject.IDictionary<String,Object>.TryGetValue 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 키와 연결된 값을 가져옵니다.
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그렇지 않으면 입니다.