ToolStripItemCollection.IList.Contains(Object) 方法

定義

判斷集合是否含有指定的項目。Determines if the collection contains a specified item.

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

參數

value
Object

要在集合中尋找的項目。The item to locate in the collection.

傳回

Boolean

如果 value 包含在集合中,則為 true,否則為 falsetrue if value is contained in the collection; otherwise, false.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 ToolStripItemCollection 執行個體轉換成 IList 介面時,才能使用這個成員。It can be used only when the ToolStripItemCollection instance is cast to an IList interface.

適用於