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.ReceiveByCorrelationId Method

Receives a message that matches a given correlation identifier.

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 ReceiveByCorrelationId(String) Receives the message that matches the given correlation identifier (from a non-transactional queue) and immediately raises an exception if no message with the specified correlation identifier currently exists in the queue.
Public method ReceiveByCorrelationId(String, MessageQueueTransaction) Receives the message that matches the given correlation identifier (from a transactional queue) and immediately raises an exception if no message with the specified correlation identifier currently exists in the queue.
Public method ReceiveByCorrelationId(String, MessageQueueTransactionType) Receives the message that matches the given correlation identifier and immediately raises an exception if no message with the specified correlation identifier currently exists in the queue.
Public method ReceiveByCorrelationId(String, TimeSpan) Receives the message that matches the given correlation identifier (from a non-transactional queue) and waits until either a message with the specified correlation identifier is available in the queue, or the time-out expires.
Public method ReceiveByCorrelationId(String, TimeSpan, MessageQueueTransaction) Receives the message that matches the given correlation identifier (from a transactional queue) and waits until either a message with the specified correlation identifier is available in the queue, or the time-out expires.
Public method ReceiveByCorrelationId(String, TimeSpan, MessageQueueTransactionType) Receives the message that matches the given correlation identifier and waits until either a message with the specified correlation identifier is available in the queue, or the time-out expires.
Top
Show:
© 2015 Microsoft