語言

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> 介面時使用。

適用於