ListView.SelectedListViewItemCollection.IList.Contains(Object) 方法

定义

确定指定项是否位于集合内。Determines whether the specified item is located in the collection.

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

参数

item
Object

一个对象,表示要在集合中查找的项。An object that represents the item to locate in the collection.

返回

Boolean

如果指定项位于集合中,则为 true;否则为 falsetrue if the specified item is located in the collection; otherwise, false.

实现

适用于