Export (0) Print
Expand All

StateManagedCollection.System.Collections.IList.Insert Method

Inserts an item into the StateManagedCollection collection at the specified index.

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

void IList.Insert (
	int index,
	Object value
)
Not applicable.

Parameters

index

The zero-based index at which value should be inserted.

value

The object to insert into the StateManagedCollection.

Exception typeCondition

ArgumentOutOfRangeException

The specified index is out of range of the collection.

NotSupportedException

The StateManagedCollection is read-only.

ArgumentNullException

The specified value is a null reference (Nothing in Visual Basic).

If index is -1, value is appended to the beginning of the StateManagedCollection collection. If index equals the number of items in the collection, value is appended to the end of the collection.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft