System.Messaging Reference (Document! X Sample)
CorrelationId Property (Message)



System.Messaging Namespace > Message Class : CorrelationId Property
Gets or sets the message identifier used by acknowledgment, report, and response messages to reference the original message.
Syntax
'Declaration
 
Public Property CorrelationId As String
'Usage
 
Dim instance As Message
Dim value As String
 
instance.CorrelationId = value
 
value = instance.CorrelationId
public string CorrelationId {get; set;}
public:
property String^ CorrelationId {
   String^ get();
   void set (    String^ value);
}

Property Value

The message identifier specified by the Id property of the original message. The correlation identifier is used by Message Queuing when it generates an acknowledgment or report message, and by an application when it generates a response message.
Exceptions
ExceptionDescription
The message queue is filtered to ignore the CorrelationId property.
The CorrelationId is null.
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

Reference

Message Class
Message Members