Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BrokeredMessage.CorrelationId Property

Gets or sets the identifier of the correlation.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

'Declaration
Public Property CorrelationId As String 
	Get 
	Set
'Usage
Dim instance As BrokeredMessage 
Dim value As String 

value = instance.CorrelationId

instance.CorrelationId = value

Property Value

Type: System.String
The identifier of the correlation.

ExceptionCondition
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.

Community Additions

ADD
Show:
© 2015 Microsoft