AdditionalPropertiesDictionary<TValue>.IDictionary<String,TValue>.TryGetValue Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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 será obtido.
- value
- TValue
Quando esse 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. Esse parâmetro é passado sem inicialização.
Retornos
true se o objeto que implementa IDictionary<TKey,TValue> contiver um elemento com a chave especificada; caso contrário, false.