Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MessageQueue.Receive Method

Receives the first message in the queue, removing it from the queue.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Receive() Receives the first message available in the queue referenced by the MessageQueue. This call is synchronous, and blocks the current thread of execution until a message is available.
Public method Receive(MessageQueueTransaction) Receives the first message available in the transactional queue referenced by the MessageQueue. This call is synchronous, and blocks the current thread of execution until a message is available.
Public method Receive(MessageQueueTransactionType) Receives the first message available in the queue referenced by the MessageQueue. This call is synchronous, and blocks the current thread of execution until a message is available.
Public method Receive(TimeSpan) Receives the first message available in the queue referenced by the MessageQueue and waits until either a message is available in the queue, or the time-out expires.
Public method Receive(TimeSpan, Cursor) 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.
Public method Receive(TimeSpan, MessageQueueTransaction) Receives the first message available in the transactional queue referenced by the MessageQueue and waits until either a message is available in the queue, or the time-out expires.
Public method Receive(TimeSpan, MessageQueueTransactionType) Receives the first message available in the queue referenced by the MessageQueue. This call is synchronous, and waits until either a message is available in the queue, or the time-out expires.
Public method Receive(TimeSpan, Cursor, MessageQueueTransaction) 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.
Public method Receive(TimeSpan, Cursor, MessageQueueTransactionType) 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.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.