Represents the correlation filter expression.
public sealed class CorrelationFilter : Microsoft.Azure.ServiceBus.Filter
type CorrelationFilter = class inherit Filter
Public NotInheritable Class CorrelationFilter Inherits Filter
A CorrelationFilter holds a set of conditions that are matched against one of more of an arriving message's user and system properties. A common use is a match against the CorrelationId property, but the application can also choose to match against ContentType, Label, MessageId, ReplyTo, ReplyToSessionId, SessionId, To, and any user-defined properties. A match exists when an arriving message's value for a property is equal to the value specified in the correlation filter. For string expressions, the comparison is case-sensitive. When specifying multiple match properties, the filter combines them as a logical AND condition, meaning all conditions must match for the filter to match.
The CorrelationFilter provides an efficient shortcut for declarations of filters that deal only with correlation equality. In this case the cost of the lexigraphical analysis of the expression can be avoided. Not only will correlation filters be optimized at declaration time, but they will also be optimized at runtime. Correlation filter matching can be reduced to a hashtable lookup, which aggregates the complexity of the set of defined correlation filters to O(1).
Initializes a new instance of the CorrelationFilter class with default values.
Initializes a new instance of the CorrelationFilter class with the specified correlation identifier.
Content type of the message.
Identifier of the correlation.
Application specific label.
Identifier of the message.
Application specific properties of the message.
Address of the queue to reply to.
Session identifier to reply to.
Address to send to.
Converts the value of the current instance to its equivalent string representation.