Foley .NET Utilities Class Library

IList2.Insert Method (Int32, ICollection)

When implemented by a class, inserts the elements of the ICollection to the list at the specified position.

[Visual Basic]
Function Insert( _
   ByVal index As Integer, _
   ByVal collection As ICollection _
) As Boolean
[C#]
bool Insert(
   int index,
   ICollection collection
);

Parameters

index
The zero-based index at which collection should be inserted.
collection
The ICollection whose elements are to be added to the list.

Return Value

true if the list is modified; otherwise false.

Exceptions

Exception TypeCondition
System.NotSupportedException

The list is read-only.

-or-

The list has a fixed size.

See Also

IList2 Interface | IList2 Members | Foley.Utilities.Collections Namespace | IList2.Insert Overload List