Array.IList.Contains(Object) 方法

定义

确定某元素是否在 IList 中。Determines whether an element is in the IList.

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

参数

value
Object

要在当前列表中定位的对象。The object to locate in the current list. 要定位的元素对于引用类型可以是 nullThe element to locate can be null for reference types.

返回

如果在 true 中找到 value,则为 IList;否则为 falsetrue if value is found in the IList; otherwise, false.

实现

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 Array 实例被强制转换为 IList 接口时使用。It can be used only when the Array instance is cast to an IList interface.

适用于