HttpHeadersNonValidated.IReadOnlyDictionary<String,HeaderStringValues>.TryGetValue Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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 para localizar.
- value
- HeaderStringValues
Quando este método retorna, contém o valor associado à chave especificada, caso a chave seja encontrada; caso contrário, contém o valor padrão de HeaderStringValues. Este parâmetro é passado sem inicializar.
Devoluções
true se a coleção contiver o cabeçalho especificado; caso contrário, false.