Collection.IList.Contains(Object) 方法

定义

确定 Collection 对象是否包含特定值。Determines whether the Collection object contains a specific value.

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

参数

value
Object

要在 Object 对象中查找的 CollectionThe Object to locate in the Collection object.

返回

Boolean

如果在 Object 对象中找到 Collection,则返回 True,否则返回 FalseReturns True if the Object is found in the Collection object; otherwise, False.

注解

此方法确定对象是否 Collection 包含特定值。This method determines whether the Collection object contains a specific value.

适用于

另请参阅