StateManagedCollection.IList.Contains(Object) 方法

定义

确定 StateManagedCollection 集合中是否包含特定值。Determines whether the StateManagedCollection collection contains 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

要在 object 中定位的 StateManagedCollectionThe object to locate in the StateManagedCollection.

返回

Boolean

如果在 StateManagedCollection 中找到对象,则为 true;否则为 falsetrue if the object is found in the StateManagedCollection; otherwise, false. 如果为值参数传递 null,则返回 falseIf null is passed for the value parameter, false is returned.

实现

注解

OnValidate调用方法以在 value 检查集合之前进行验证。The OnValidate method is called to validate value before the collection is checked.

适用于

另请参阅