NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ArrayList.RemoveRange

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
);

Parameters

index
The starting index of the range of elements to remove.
count
The number of elements to remove.

Return Value

None.

Exceptions

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.

Remarks

This method can be overridden by a derived class.

See Also

ArrayList Class | ArrayList Members | System.Collections Namespace | GetRange | AddRange | InsertRange | SetRange