SynchronizedReadOnlyCollection<T>.IList.Contains(Object) 方法

定义

检查集合中是否存在指定的对象。Checks whether the specified object exists in the collection.

 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 collection.

返回

如果对象位于集合中,则为 true;否则为 falsetrue if the object is located in the collection; otherwise, false.

实现

异常

value 不是集合所含类型的对象。value is not an object of the type contained in the collection.

适用于