GlobalTypeCollection.IList.Contains(Object) 方法

定义

确定指定项是否在集合中。

 virtual bool System.Collections.IList.Contains(System::Object ^ item) = System::Collections::IList::Contains;
 virtual bool System.Collections.IList.Contains(Platform::Object ^ item) = System::Collections::IList::Contains;
bool System.Collections.IList.Contains(winrt::Windows::Foundation::IInspectable const & item);
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

要查找的项。

返回

Boolean

true 如果可以在集合中找到该对象,则为; 否则为 false

实现

适用于