NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MessageQueue.ReceiveByCorrelationId (String)

Receivess the message that matches the given correlation ID. If there is no message with a matching correlation ID, an exception is thrown.

[Visual Basic]
Overloads Overridable Public Function ReceiveByCorrelationId( _
   ByVal correlationId As String _
) As Message
[C#]
public virtual Message ReceiveByCorrelationId(
   string correlationId
);
[C++]
public: virtual Message* ReceiveByCorrelationId(
   String* correlationId
);
[JScript]
public function ReceiveByCorrelationId(
   correlationId : String
) : Message;

Parameters

correlationId
The CorrelationId of the message to receive.

Return Value

The message with a matching correlation ID.

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace | MessageQueue.ReceiveByCorrelationId Overload List