ListViewItem.ListViewSubItemCollection.IList.Contains(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定的子項目是否位於集合中。
virtual bool System.Collections.IList.Contains(System::Object ^ subItem) = System::Collections::IList::Contains;
virtual bool System.Collections.IList.Contains(System::Object ^ item) = System::Collections::IList::Contains;
bool IList.Contains (object subItem);
bool IList.Contains (object item);
bool IList.Contains (object? item);
abstract member System.Collections.IList.Contains : obj -> bool
override this.System.Collections.IList.Contains : obj -> bool
abstract member System.Collections.IList.Contains : obj -> bool
override this.System.Collections.IList.Contains : obj -> bool
Function Contains (subItem As Object) As Boolean Implements IList.Contains
Function Contains (item As Object) As Boolean Implements IList.Contains
參數
- subItemitem
- Object
物件,表示要在集合中尋找的子項目。
傳回
如果子項目包含在集合中,則為 true
,否則為 false
。