Collection.IList.Contains(Object) Collection.IList.Contains(Object) Collection.IList.Contains(Object) Method

定义

确定 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);
Function IListContains (value As Object) As Boolean Implements IList.Contains

参数

value
Object Object Object

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

返回

如果在 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.

适用于

另请参阅