System.Web.UI.StateManagedCollection.OnValidate Method

When overridden in a derived class, validates an element of the System.Web.UI.StateManagedCollection collection.

Syntax

protected virtual void OnValidate (object value)

Parameters

value
The System.Web.UI.IStateManager to validate.

Remarks

The StateManagedCollection.OnValidate(object) method is called to validate the object manipulated through the System.Web.UI.StateManagedCollection implementation of the IList interface methods. The default implementation is to verify that the object manipulated by the collection is not null; however, collections derived from System.Web.UI.StateManagedCollection override the StateManagedCollection.OnValidate(object) method to perform any additional validation, such as type-checking.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0