共用方式為


ExpandoObject.IDictionary<String,Object>.ContainsKey(String) 方法

定義

判斷此字典是否包含指定的索引鍵。

 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

要在字典中尋找的索引鍵。

傳回

如果字典包含具有指定索引鍵的項目,則為 true;否則為 false

實作

適用於