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.GetRange

Copies a range of elements in the ArrayList into a new ArrayList.

[Visual Basic]
Overridable Public Function GetRange( _
   ByVal index As Integer, _
   ByVal count As Integer _
) As ArrayList
[C#]
public virtual ArrayList GetRange(
   int index,
   int count
);
[C++]
public: virtual ArrayList* GetRange(
   int index,
   int count
);
[JScript]
public function GetRange(
   index : int,
   count : int
) : ArrayList;

Parameters

index
The ArrayList index from which to start copying.
count
[To be supplied.]

Return Value

A new ArrayList with copies of the specified range of elements from the source ArrayList.

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.

Remarks

This method can be overridden by a derived class.

See Also

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