Modifica

Condividi tramite


MsmqMessage<T>.CorrelationId Property

Definition

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.

Applies to