HttpHeadersNonValidated.IReadOnlyDictionary<String,HeaderStringValues>.TryGetValue Method

Definition

Gets the value that is associated with the specified key.

 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

Parameters

key
String

The key to locate.

value
HeaderStringValues

When this method returns, contains the value associated with the specified key, if the key is found; otherwise, contains the default value of HeaderStringValues. This parameter is passed uninitialized.

Returns

true if the collection contains the specified header; otherwise, false.

Applies to