HttpHeadersNonValidated.IReadOnlyDictionary<String,HeaderStringValues>.TryGetValue 메서드

정의

지정한 키와 연결된 값을 가져옵니다.

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

매개 변수

key
String

찾을 키입니다.

value
HeaderStringValues

이 메서드가 반환될 때 키가 발견되면 지정된 키와 연결된 값이 포함됩니다. 그렇지 않으면 의 기본값 HeaderStringValues이 포함됩니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.

반환

true 컬렉션에 지정된 헤더가 포함되어 있으면 이고, 그렇지 않으면 입니다 false.

적용 대상