Compartir a través de


IList.Insert Method

When implemented by a class, this method inserts an object at a specified index number in the IList collection.

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

Syntax

public void Insert (
         int index,
         Object value
)

Parameters

  • index
    The zero-based index number at which you want the specified object to be inserted into the IList collection.
  • value
    The object you want to insert into the collection.

Remarks

If the specified index number equals the total number of objects in the IList collection, the specified object is inserted at the end of the collection.

Version Information

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

See Also

Reference

IList Interface
IList Members
System.Collections Namespace