您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

CorrelationFilter Class

定义

Represents the correlation filter expression. For more information about filters, see the Topic Filters sample.

[System.Runtime.Serialization.DataContract(Name="CorrelationFilter", Namespace="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")]
[System.Runtime.Serialization.KnownType(typeof(System.DateTimeOffset))]
public sealed class CorrelationFilter : Microsoft.ServiceBus.Messaging.Filter
继承
System.Object
CorrelationFilter
属性
System.Runtime.Serialization.DataContractAttribute System.Runtime.Serialization.KnownTypeAttribute

继承成员

Microsoft.ServiceBus.Messaging.Filter

注解

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

构造函数

CorrelationFilter()

Initializes a new instance of the CorrelationFilter class with default values.

CorrelationFilter(String)

Initializes a new instance of the CorrelationFilter class with the specified correlation identifier.

属性

ContentType

Gets the content type of the message.

CorrelationId

Gets the identifier of the correlation.

Label

Gets the application specific label.

MessageId

Gets the identifier of the message.

Properties

Gets the application specific properties of the message.

ReplyTo

Gets the address of the queue to reply to.

ReplyToSessionId

Gets the session identifier to reply to.

RequiresPreprocessing

Gets a value indicating whether the CorrelationFilter expression requires preprocessing.

SessionId

Gets the session identifier.

To

Gets the address to send to.

方法

Match(BrokeredMessage)

Indicates whether a message matches against the current SQL expression.

Preprocess()

Gets the preprocessed filter expression.

ToString()

Converts the value of the current instance to its equivalent string representation.

Validate()

Validates the CorrelationFilter object.

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)