System.Collections.IList.Insert Method

Inserts an object at a specified location (index number) in an array.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

void System.Collections.IList.Insert (
         intindex,
         Objectvalue
)

Parameters

  • index
    The index number at which you want to insert the specified object into the array.
  • value
    The object you want to insert into the array.

Remarks

The Array object has a fixed size. Therefore, inserting objects into an array of this type does not increase the length of the arrary, and removing objects from it does not decrease its length.

This method always throws a NotSupportedException exception.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

Array Class
Array Members
System Namespace