Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MessageQueue.Receive Method

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

Name Description
MessageQueue.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.

Supported by the .NET Compact Framework.

MessageQueue.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.
MessageQueue.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.
MessageQueue.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.

Supported by the .NET Compact Framework.

MessageQueue.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.
MessageQueue.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.
MessageQueue.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.
MessageQueue.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.
MessageQueue.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.

Community Additions

ADD
Show:
© 2015 Microsoft