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