This documentation is archived and is not being maintained.

MessageEnumerator.MoveNext Method

Advances the enumerator to the next message in the queue.

Overload List

Advances the enumerator to the next message in the queue, if one is currently available.

[Visual Basic] Overloads Public Overridable Function MoveNext() As Boolean Implements IEnumerator.MoveNext
[C#] public virtual bool MoveNext();
[C++] public: virtual bool MoveNext();
[JScript] public function MoveNext() : Boolean;

Advances the enumerator to the next message in the queue. If the enumerator is positioned at the end of the queue, MoveNext waits until a message is available or the given timeout expires.

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

See Also

MessageEnumerator Class | MessageEnumerator Members | System.Messaging Namespace

Show: