System.Web.UI.StateManagedCollection.OnClear Method

When overridden in a derived class, performs additional work before the StateManagedCollection.Clear method removes all items from the collection.

Syntax

protected virtual void OnClear ()

Remarks

Collections derived from System.Web.UI.StateManagedCollection can override the StateManagedCollection.OnClear method to perform any additional work before all items are removed from the collection using the StateManagedCollection.Clear method.

Requirements

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