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

Copies the elements of a collection over a range of elements in the ArrayList.

[Visual Basic]
Overridable Public Sub SetRange( _
   ByVal index As Integer, _
   ByVal c As ICollection _
)
[C#]
public virtual void SetRange(
   int index,
   ICollection c
);
[C++]
public: virtual void SetRange(
   int index,
   ICollection* c
);
[JScript]
public function SetRange(
   index : int,
   c : ICollection
);

Parameters

index
The ArrayList index at which to start copying the elements of c.
c
The ICollection whose elements to copy to the ArrayList.

Return Value

None.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException index is less than zero.

-or-

index plus the number of elements in c is greater than the Capacity of the ArrayList.

ArgumentNullException c is a null reference (in Visual Basic Nothing).
NotSupportedException The ArrayList is read-only.

Remarks

This method can be overridden by a derived class.

See Also

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