StateManagedCollection.OnInsertComplete Method (Int32, Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

When overridden in a derived class, performs additional work after the IList.Insert or IList.Add method adds an item to the collection.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

protected virtual void OnInsertComplete(
	int index,
	object value


Type: System.Int32

The zero-based index at which value is inserted by the IList.Insert method.

Type: System.Object

The object inserted into the StateManagedCollection.

Collections derived from StateManagedCollection can override the OnInsertComplete method to perform any additional work after an item is added to the collection using the IList.Add or IList.Insert method.

.NET Framework
Available since 2.0
Return to top