RemoveRange Method
Removes a range of elements from the System.Collections.ArrayList.
Syntax
Parameters
- index
- The zero-based starting index of the range of elements to remove.
- count
- The number of elements to remove.
Exceptions
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | index is less than zero.-or- count is less than zero. |
System.ArgumentException | index and count do not denote a valid range of elements in the System.Collections.ArrayList. |
System.NotSupportedException | The System.Collections.ArrayList is read-only.-or- The System.Collections.ArrayList has a fixed size. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also