RuleDescription

 

RuleDescription represents a rule for processing messages. Service Bus matches messages with the filter represented by its Filter property and performs the action represented by its Action property against the messages that matched the filter.

RuleDescription Properties

The rule description contains the following properties.

  • Filter: SqlFilter, TrueFilter/FalseFilter, CorrelationFilter
    The Filter property references an instance of Filter that is evaluated against a message. The following types of filters are provided:

  • Action: String
    The Action property references an instance of FilterAction. The following types of FilterAction are provided. The default is an instance of EmptyRuleAction.

    • SqlFilterAction: A type of FilterAction that is represented by a SQL expression. For detailed information about SqlFilterAction syntax, see SQLFilter syntax.

    • EmptyRuleAction: A type of FilterAction that represents an empty action.

See Also

Rules
Delete Rule
Get Rule
Create Rule
List Rules
Example: Creating a Rule