Foley .NET Utilities Class Library

IList2.Remove Method (Int32, Int32)

When implemented by a class, removes the specified number of the elements starting at the position specified.

[Visual Basic]
Function Remove( _
   ByVal index As Integer, _
   ByVal count As Integer _
) As Boolean
[C#]
bool Remove(
   int index,
   int count
);

Parameters

index
Starting index for removing elements from the list.
count
The number of elements to remove from 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.Remove Overload List