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> 中尋找的索引鍵。

傳回

Boolean

如果 true 包含具有該索引鍵的項目,則為 IDictionary<TKey,TValue>,否則為 false

實作

備註

這個成員是明確介面成員實作, 只有在 HttpRequestOptions 執行個體轉換成 IDictionary<TKey,TValue> 介面時,才能使用這個成員。

適用於