SynchronizedCollection<T>.IList.Contains(Object) 方法
定义
确定集合是否包含具有特定值的元素。Determines whether the collection contains an element with a specific value.
virtual bool System.Collections.IList.Contains(System::Object ^ value) = System::Collections::IList::Contains;
bool IList.Contains (object value);
abstract member System.Collections.IList.Contains : obj -> bool
override this.System.Collections.IList.Contains : obj -> bool
Function Contains (value As Object) As Boolean Implements IList.Contains
参数
- value
- Object
要在集合中定位的对象。The object to locate in the collection.
返回
如果在集合中找到元素 true,则为 value;否则为 false。true if the element value is found in the collection; otherwise false.
实现
例外
value 不是集合所含类型的对象。value is not an object of the type contained in the collection.