Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

StateManagedCollection.OnInsert Method

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

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

protected virtual void OnInsert(
	int index,
	Object value


Type: System.Int32

The zero-based index at which value should be inserted by the Insert method.

Type: System.Object

The object to insert into the StateManagedCollection.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft