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:SqlFilter: A type of filter that is represented by SQL expression. For detailed information about SqlFilter syntax, see SQLFilter syntax.
TrueFilter/FalseFilter: A handy shortcut for always returning true or false. They are a type of SqlFilter.
CorrelationFilter: A type of filter that matches the CorrelationId property of the BrokeredMessage class.
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