When overridden in a derived class, performs additional work before the IList.Remove or IList.RemoveAt method removes the specified item from the collection.
protected virtual void OnRemove(
The zero-based index of the item to remove, which is used when IList.RemoveAt is called.
The object to remove from the StateManagedCollection, which is used when IList.Remove is called.
Collections derived from StateManagedCollection can override the OnRemove method to perform any additional work before an item is removed from the collection using the IList.Remove or IList.RemoveAt method.
IList.RemoveAtIList.RemoveOnRemoveCompleteStateManagedCollection ClassSystem.Web.UI Namespace