共用方式為


ModelItemDictionary.IDictionary.Contains(Object) 方法

定義

判斷 IDictionary 物件是否包含具有指定索引鍵的項目。

 virtual bool System.Collections.IDictionary.Contains(System::Object ^ key) = System::Collections::IDictionary::Contains;
bool IDictionary.Contains (object key);
abstract member System.Collections.IDictionary.Contains : obj -> bool
override this.System.Collections.IDictionary.Contains : obj -> bool
Function Contains (key As Object) As Boolean Implements IDictionary.Contains

參數

key
Object

要在 IDictionary 物件中尋找的索引鍵。

傳回

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

實作

適用於