SalesBuy
1-855-856-7678
Technical SupportSupport
Gets or sets the identifier of the correlation.
Namespace: Microsoft.ServiceBus.Messaging
| Exception | Condition |
|---|---|
| ObjectDisposedException | Thrown if the message is in disposed state. |
The CorrelationId is used for a faster way to apply filtering rules. For example, you could create a filter that would process all messages with a specific CorrelationId. The advantage of using the CorrelationId to SessionId is that CorrelationId is saved in a hash table, which speeds up the filtering process.