语言

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

定义

确定该元素是否 IDictionary<TKey,TValue> 包含具有指定键的元素。

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

参数

key
String

要查找到的 IDictionary<TKey,TValue>键。

返回

true 如果包含具有键的元素,则为 IDictionary<TKey,TValue> ;否则为 false。

实现

注解

此成员是显式接口成员实现。 仅当实例强制转换为HttpRequestOptions接口时IDictionary<TKey,TValue>,才能使用它。

适用于