System.Messaging Reference (Document! X Sample)
MoveNext() Method



System.Messaging Namespace > MessageEnumerator Class > MoveNext Method : MoveNext() Method
Advances the enumerator to the next message in the queue, if one is currently available.
Syntax
'Declaration
 
Public Overloads Function MoveNext() As Boolean
'Usage
 
Dim instance As MessageEnumerator
Dim value As Boolean
 
value = instance.MoveNext()
public bool MoveNext()
public:
bool MoveNext(); 

Return Value

true if the enumerator was succesfully advanced to the next message; false if the enumerator has reached the end of the queue.
Exceptions
ExceptionDescription
An exception specific to Message Queuing was thrown.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MessageEnumerator Class
MessageEnumerator Members
Overload List