When overridden in a derived class, performs additional work before the System.Web.UI.StateManagedCollection.System.Collections.IList.Insert(int, object) or System.Web.UI.StateManagedCollection.System.Collections.IList.Add(object) method adds an item to the collection.
- index
- The zero-based index at which value should be inserted by the System.Web.UI.StateManagedCollection.System.Collections.IList.Insert(int, object) method.
- value
- The object to insert into the System.Web.UI.StateManagedCollection.
Collections derived from System.Web.UI.StateManagedCollection can override the StateManagedCollection.OnInsert(int, object) method to perform any additional work before an item is added to the collection using the System.Web.UI.StateManagedCollection.System.Collections.IList.Add(object) or System.Web.UI.StateManagedCollection.System.Collections.IList.Insert(int, object) method.