ReceiveByCorrelationId Method
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.
Overload List
Overload | Description |
---|---|
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. |
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. |
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. |
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. |
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. |
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. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also