SALES: 1-800-867-1380
This topic has not yet been rated - Rate this topic

Filter Class

Describes a filter expression that is evaluated against a BrokeredMessage.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
[KnownTypeAttribute(typeof(SqlFilter))]
[KnownTypeAttribute(typeof(DateTimeOffset))]
[KnownTypeAttribute(typeof(TrueFilter))]
[KnownTypeAttribute(typeof(CorrelationFilter))]
[KnownTypeAttribute(typeof(FalseFilter))]
[DataContractAttribute(Name = L"Filter", Namespace = L"http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")]
public ref class Filter abstract : IExtensibleDataObject

The Filter type exposes the following members.

  NameDescription
Public propertyRequiresPreprocessingGets a value indicating whether the filter expression requires preprocessing.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodMatchMatches the BrokeredMessage against the FilterExpression.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPreprocessPreprocesses the filter expression and returns a preprocessed FilterExpression.
Public methodToString (Inherited from Object.)
Public methodValidateValidates the FilterExpression and make sure it complies with the valid grammar rules.
Top
  NameDescription
Explicit interface implemetationPrivate propertyIExtensibleDataObject::ExtensionDataGets or sets the object that contains extra data.
Top

FilterExpression is an abstract class with the following concrete implementations:

  1. SqlFilterExpression that represents a filter using SQL syntax.

  2. CorrelationFilter that provides an optimization for correlation equality expressions.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.