AdditionalPropertiesDictionary<TValue>.IDictionary<String,TValue>.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.IDictionary<System.String,TValue>.TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] TValue % value) = System::Collections::Generic::IDictionary<System::String ^, TValue>::TryGetValue;
bool IDictionary<string,TValue>.TryGetValue(string key, out TValue value);
abstract member System.Collections.Generic.IDictionary<System.String,TValue>.TryGetValue : string * 'Value -> bool
override this.System.Collections.Generic.IDictionary<System.String,TValue>.TryGetValue : string * 'Value -> bool
Function TryGetValue (key As String, ByRef value As TValue) As Boolean Implements IDictionary(Of String, TValue).TryGetValue
Parâmetros
- key
- String
A chave cujo valor é obter.
- value
- TValue
Quando este método retorna, o valor associado à chave especificada, se a chave for encontrada; caso contrário, o valor padrão para o tipo do value parâmetro. Este parâmetro é passado sem inicializar.
Devoluções
true se o objeto que implementa IDictionary<TKey,TValue> contém um elemento com a chave especificada; caso contrário, false.