Receives the current message in the queue, using a specified cursor. If no message is available, this method waits until either a message is available, or the time-out expires.
Parameters
- timeout
- A System.TimeSpan that indicates the time to wait until a new message is available for inspection.
- cursor
- A Cursor that maintains a specific position in the message queue.
- transaction
- The MessageQueueTransaction object.
Return Value
A
Message that references a message in the queue.
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