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.
'Declaration
Public Overloads Function ReceiveByCorrelationId( _
ByVal As String _
) As Message
'Usage
Dim instance As MessageQueue
Dim correlationId As String
Dim value As Message
value = instance.ReceiveByCorrelationId(correlationId)
public Message ReceiveByCorrelationId(
string
)
public:
Message^ ReceiveByCorrelationId(
String^
)
Parameters
- correlationId
- The CorrelationId of the message to receive.
Return Value
The
Message whose
CorrelationId matches the parameter passed in.
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