Share via


Rule Class

Represents a rule. A rule is used to filter and modify messages as they pass through subscriptions.

Inheritance Hierarchy

System.Object
  Microsoft.ServiceBus.Messaging.Rule

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

Syntax

'Declaration
Public NotInheritable Class Rule
'Usage
Dim instance As Rule
public sealed class Rule
public ref class Rule sealed
[<SealedAttribute>]
type Rule =  class end
public final class Rule

The Rule type exposes the following members.

Properties

  Name Description
Public property ExtensionData Gets the information describing the extension.
Public property FilterAction Gets the filter actions.
Public property FilterExpression Gets the filter expression that is used to filter messages that should pass through the subscription.
Public property Name Gets the name of the rule.
Public property NamespaceClient Gets the client that is used to access the ServiceBus namespace and perform management operations.
Public property SubscriptionName Gets the name of the subscription.
Public property TopicPath Gets the topic’s path relative to the base address of the namespace.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetDescription Gets the rule description.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.ServiceBus.Messaging Namespace