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!

MessagesEnumerator.MoveNext (TimeSpan)

Advances the enumerator to the next message of the enumeration and returns a boolean indicating whether a message is available, if the enumerator is positioned at the end of the queue, this operation will wait until a message is available or the given timeout expires. Upon creation, an enumerator is conceptually positioned before the first message of the enumeration, and the first call to MoveNext brings the first message of the enumeration into view.

[Visual Basic]
Overloads Public Function MoveNext( _
   ByVal timeout As TimeSpan _
) As Boolean
[C#]
public bool MoveNext(
   TimeSpan timeout
);
[C++]
public: bool MoveNext(
   TimeSpan timeout
);
[JScript]
public function MoveNext(
   timeout : TimeSpan
) : Boolean;

Parameters

timeout
the time to wait for a message to be available if the enumerator is positioned at the end of the queue.

Return Value

true if the enumerator was succesfully advanced to the next message, false if the enumeration has been completed.

See Also

MessagesEnumerator Class | MessagesEnumerator Members | System.Messaging Namespace | MessagesEnumerator.MoveNext Overload List