When overridden in a derived class, validates an element of the System.Web.UI.StateManagedCollection collection.
- value
- The System.Web.UI.IStateManager to validate.
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.