Removes a range of elements from the ArrayList.
[Visual Basic] Overridable Public Sub RemoveRange( _ ByVal index As Integer, _ ByVal count As Integer _ ) [C#] public virtual void RemoveRange( int index, int count ); [C++] public: virtual void RemoveRange( int index, int count ); [JScript] public function RemoveRange( index : int, count : int );
None.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | index is less than zero.
-or- count is less than zero. |
ArgumentException | index and count do not denote a valid range of elements in the ArrayList. |
NotSupportedException | The ArrayList is read-only.
-or- The ArrayList has a fixed size. |
This method can be overridden by a derived class.
ArrayList Class | ArrayList Members | System.Collections Namespace | GetRange | AddRange | InsertRange | SetRange