HttpRequestOptions.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 매개 변수의 형식에 대한 기본값을 포함합니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.

반환

Boolean

true에 지정한 키가 있는 요소가 포함되어 있으면 Dictionary<TKey,TValue>이고, 그렇지 않으면 false입니다.

설명

이 멤버는 명시적 인터페이스 멤버 구현이며, HttpRequestOptions 인스턴스가 IDictionary<TKey,TValue> 인터페이스로 캐스팅된 경우에만 사용할 수 있습니다.

적용 대상