AdditionalPropertiesDictionary<TValue>.IDictionary<String,TValue>.TryGetValue Método

Definição

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.

Implementações

Aplica-se a