HttpRequestOptions.IReadOnlyDictionary<String,Object>.TryGetValue 方法

定义

获取与指定键关联的值。

 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

参数

key
String

要查找的键。

value
Object

此方法返回时,如果找到该键,则包含与指定键关联的值;否则为参数类型的 value 默认值。 此参数未初始化传递。

返回

true HttpRequestOptions如果实例包含具有指定键的元素,则为 ;否则为 false

适用于