MsmqMessage<T>.CorrelationId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a String that contains the correlation identifier for this message.
public:
property System::String ^ CorrelationId { System::String ^ get(); void set(System::String ^ value); };
public string CorrelationId { get; set; }
member this.CorrelationId : string with get, set
Public Property CorrelationId As String
Property Value
A String that contains the correlation identifier for this message.
Examples
message.CorrelationId = "This message";
message.CorrelationId = "This message"
Remarks
When Message Queuing (MSMQ) generates an acknowledgment or report message, it uses this property to specify the message identifier of the original message. The application that sent the original message, when it receives an acknowledgment or report message, can get this property from the message it receives to verify the message identifier of the original message.
The application can also use this property to correlate messages for its own purposes.