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.ToArray ()

Copies the elements of the ArrayList to a new Object array.

[Visual Basic]
Overloads Overridable Public Function ToArray() As Object ()
[C#]
public virtual object[] ToArray();
[C++]
public: virtual Object* ToArray() [];
[JScript]
public function ToArray() : Object[];

Return Value

An Object array containing copies of the elements of the ArrayList.

Remarks

This method can be overridden by a derived class.

The elements are copied using Copy, which is an O(n) operation.

See Also

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