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



System.Messaging Namespace > MessageEnumerator Class > RemoveCurrent Method : RemoveCurrent() Method
Removes the current message from a transactional or non-transactional queue and returns the message to the calling application. There is no timeout specified for a message to arrive in the queue.
Syntax
'Declaration
 
Public Overloads Function RemoveCurrent() As Message
'Usage
 
Dim instance As MessageEnumerator
Dim value As Message
 
value = instance.RemoveCurrent()
public Message RemoveCurrent()
public:
Message^ RemoveCurrent(); 

Return Value

A Message that references the first message available in the queue.
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