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

定义

确定只读字典是否包含具有指定键的元素。

 virtual bool System.Collections.Generic.IReadOnlyDictionary<System.String,System.Object>.ContainsKey(System::String ^ key) = System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Object ^>::ContainsKey;
bool IReadOnlyDictionary<string,object>.ContainsKey (string key);
abstract member System.Collections.Generic.IReadOnlyDictionary<System.String,System.Object>.ContainsKey : string -> bool
override this.System.Collections.Generic.IReadOnlyDictionary<System.String,System.Object>.ContainsKey : string -> bool
Function ContainsKey (key As String) As Boolean Implements IReadOnlyDictionary(Of String, Object).ContainsKey

参数

key
String

要定位的键。

返回

如果该只读词典包含一具有指定键的元素,则为 true;否则为 false

实现

适用于