StateManagedCollection::IList::Contains Method (Object^)

 

Determines whether the StateManagedCollection collection contains a specific value.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

private:
virtual bool Contains(
	Object^ value
) sealed = IList::Contains

Parameters

value
Type: System::Object^

The object to locate in the StateManagedCollection.

Return Value

Type: System::Boolean

true if the object is found in the StateManagedCollection; otherwise, false. If null is passed for the value parameter, false is returned.

The OnValidate method is called to validate value before the collection is checked.

.NET Framework
Available since 2.0
Return to top
Show: