Click or drag to resize
ArrayListInsert Method
Inserts an element into the ArrayList at the specified index.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual void Insert(
	int index,
	Object value
)

Parameters

index
Type: SystemInt32
The zero-based index at which value should be inserted.
value
Type: SystemObject
The Object to insert. The value can be null.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero.-or- index is greater than Count.
NotSupportedExceptionThe ArrayList is read-only.-or- The ArrayList has a fixed size.
See Also