Foley .NET Utilities Class Library

List2Base.Remove Method (Int32, Int32)

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

[Visual Basic]
MustOverride Overloads Public Function Remove( _
   ByVal index As Integer, _
   ByVal count As Integer _
) As Boolean Implements _
   IList2.Remove
[C#]
public abstract 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.

Implements

IList2.Remove

Exceptions

Exception TypeCondition
System.NotSupportedException

The list is read-only.

-or-

The list has a fixed size.

See Also

List2Base Class | List2Base Members | Foley.Utilities.Collections Namespace | List2Base.Remove Overload List