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.CopyTo (Array)

Copies the entire ArrayList into a compatible one-dimensional Array, starting at the beginning of the target array.

[Visual Basic]
Overloads Overridable Public Sub CopyTo( _
   ByVal array As Array _
)
[C#]
public virtual void CopyTo(
   Array array
);
[C++]
public: virtual void CopyTo(
   Array* array
);
[JScript]
public function CopyTo(
   array : Array
);

Parameters

array
The one-dimensional Array to copy the elements into.

Return Value

None.

Exceptions

Exception Type Condition
ArgumentException array is multidimensional.
ArgumentNullException array is a null reference (in Visual Basic Nothing).

Remarks

This method can be overridden by a derived class.

array must be of a compatible array type.

This method uses Copy to copy the elements.

See Also

ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList.CopyTo Overload List