When overridden in a derived class, performs additional work before the StateManagedCollection.Clear method removes all items from the collection.
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.