Click or drag to resize
ArrayListRemoveRange Method
Removes a range of elements from the ArrayList.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual void RemoveRange(
	int index,
	int count
)

Parameters

index
Type: SystemInt32
The zero-based starting index of the range of elements to remove.
count
Type: SystemInt32
The number of elements to remove.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero.-or- count is less than zero.
ArgumentExceptionindex and count do not denote a valid range of elements in the ArrayList.
NotSupportedExceptionThe ArrayList is read-only.-or- The ArrayList has a fixed size.
See Also