'Declaration
Public Overloads Function Receive( _ ByVal timeout As TimeSpan, _ ByVal cursor As Cursor, _ ByVal transaction As MessageQueueTransaction _ ) As Message
'Usage
Dim instance As MessageQueue Dim timeout As TimeSpan Dim cursor As Cursor Dim transaction As MessageQueueTransaction Dim value As Message value = instance.Receive(timeout, cursor, transaction)
public Message Receive( TimeSpan timeout, Cursor cursor, MessageQueueTransaction transaction )
public: Message^ Receive( TimeSpan timeout, Cursor^ cursor, MessageQueueTransaction^ transaction )
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.