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!

Queue.ToArray

Copies the Queue elements into a new array.

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

Return Value

A new array containing copies of the Queue 's elements.

Remarks

This method can be overridden by a derived class.

The Queue is not modified. The order of the elements in the new array is the same as the order of the elements from the Queue 's head to its tail.

See Also

Queue Class | Queue Members | System.Collections Namespace