ReceiveByCorrelationId Method

MessageQueue.ReceiveByCorrelationId Method

 

Receives a message that matches a given correlation identifier.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

NameDescription
System_CAPS_pubmethodReceiveByCorrelationId(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.

System_CAPS_pubmethodReceiveByCorrelationId(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.

System_CAPS_pubmethodReceiveByCorrelationId(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.

System_CAPS_pubmethodReceiveByCorrelationId(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.

System_CAPS_pubmethodReceiveByCorrelationId(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.

System_CAPS_pubmethodReceiveByCorrelationId(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.

Return to top
Show:
© 2016 Microsoft