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
。