MsmqIntegrationMessageProperty.CorrelationId Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the message identifier used by acknowledgment, report, and response messages to reference the original message.

Namespace:   System.ServiceModel.MsmqIntegration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public string CorrelationId { get; set; }

Property Value

Type: System.String

The message identifier used by acknowledgment, report, and response messages to reference the original message.

When Message Queuing (MSMQ) generates an acknowledgment or report message, it uses the correlation identifier to specify the message identifier of the original message. In this manner, the correlation identifier ties the report or acknowledgment message to the original message.

The sending application can then match the acknowledgment or report with the original message by using the correlation identifier to verify the original message's identity.

.NET Framework
Available since 3.0
Return to top
Show: