HttpRequestOptions.IDictionary<String,Object>.TryGetValue Método

Definição

Obtém o valor associado à chave especificada.

 virtual bool System.Collections.Generic.IDictionary<System.String,System.Object>.TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] System::Object ^ % value) = System::Collections::Generic::IDictionary<System::String ^, System::Object ^>::TryGetValue;
bool IDictionary<string,object>.TryGetValue (string key, out object value);
abstract member System.Collections.Generic.IDictionary<System.String,System.Object>.TryGetValue : string * obj -> bool
override this.System.Collections.Generic.IDictionary<System.String,System.Object>.TryGetValue : string * obj -> bool
Function TryGetValue (key As String, ByRef value As Object) As Boolean Implements IDictionary(Of String, Object).TryGetValue

Parâmetros

key
String

A chave do valor a ser obtido.

value
Object

Quando esse método retorna, ele contém o valor associado à chave especificada, caso a chave seja encontrada; caso contrário, o valor padrão para o tipo do parâmetro value. Este parâmetro é passado não inicializado.

Retornos

true se o Dictionary<TKey,TValue> contiver um elemento com a chave especificada; caso contrário, false.

Comentários

Este membro é uma implementação do membro de interface explícita. Ele só pode ser usado quando a instância de HttpRequestOptions é convertida em uma interface de IDictionary<TKey,TValue>.

Aplica-se a