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

Returns an enumerator which can be used to iterate through the Queue.

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

Return Value

An IEnumerator for the Queue.

Remarks

This method can be overridden by a derived class.

The enumerator does not have exclusive access to the Queue; therefore, any changes made to the Queue may cause Current or MoveNext to throw an exception.

Removing objects from the enumerator will remove them from the Queue.

See Also

Queue Class | Queue Members | System.Collections Namespace | IEnumerator