HttpHeadersNonValidated.IReadOnlyDictionary<String,HeaderStringValues>.TryGetValue Método

Definição

Obtém o valor associado à chave especificada.

 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

Parâmetros

key
String

A chave a ser localizada.

value
HeaderStringValues

Quando esse método retorna, contém o valor associado à chave especificada, se a chave for encontrada; caso contrário, contém o valor padrão de HeaderStringValues. Este parâmetro é passado não inicializado.

Retornos

true se a coleção contiver o cabeçalho especificado; caso contrário, false.

Aplica-se a