AdditionalPropertiesDictionary<TValue>.IReadOnlyDictionary<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.IReadOnlyDictionary<System.String,TValue>.TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] TValue % value) = System::Collections::Generic::IReadOnlyDictionary<System::String ^, TValue>::TryGetValue;
bool IReadOnlyDictionary<string,TValue>.TryGetValue(string key, out TValue value);
abstract member System.Collections.Generic.IReadOnlyDictionary<System.String,TValue>.TryGetValue : string * 'Value -> bool
override this.System.Collections.Generic.IReadOnlyDictionary<System.String,TValue>.TryGetValue : string * 'Value -> bool
Function TryGetValue (key As String, ByRef value As TValue) As Boolean Implements IReadOnlyDictionary(Of String, TValue).TryGetValue
Parâmetros
- key
- String
A chave a ser localizada.
- 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 a IReadOnlyDictionary<TKey,TValue> interface contiver um elemento que tenha a chave especificada; caso contrário, false.