ModelItemCollection.IList.Contains(Object) 方法

定義

判斷 ModelItemCollection 是否包含指定的元素。

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

參數

value
Object

要在 ModelItemCollection 中尋找的物件。

傳回

Boolean

如果 ModelItemCollection 包含具有指定的值的項目,則為 true,否則為 false

實作

例外狀況

valuenull

適用於