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

Definição

Obtém o valor associado à chave especificada.

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

Parâmetros

key
String

A chave a ser localizada.

value
Object

Quando esse método é retornado, contém 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 a HttpRequestOptions instância contiver um elemento com a chave especificada; caso contrário, false.

Aplica-se a