HttpRequestOptions.IDictionary<String,Object>.ContainsKey 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷是否 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> 介面時使用。