SubscriptionClient.AddRuleAsync Method

Definition

Overloads

AddRuleAsync(RuleDescription)

Asynchronously adds a new rule to the SubscriptionDescription using the specified rule description.

AddRuleAsync(String, Filter)

Asynchronously adds a rule to the current subscription with the specified name and filter expression.

AddRuleAsync(RuleDescription)

Asynchronously adds a new rule to the SubscriptionDescription using the specified rule description.

public System.Threading.Tasks.Task AddRuleAsync (Microsoft.ServiceBus.Messaging.RuleDescription description);
Parameters
description
RuleDescription

The rule description that provides metadata of the rule to add.

Returns

A task instance that represents the asynchronous add rule operation.

AddRuleAsync(String, Filter)

Asynchronously adds a rule to the current subscription with the specified name and filter expression.

public System.Threading.Tasks.Task AddRuleAsync (string ruleName, Microsoft.ServiceBus.Messaging.Filter filter);
Parameters
ruleName
String

The name of the rule to add.

filter
Filter

The filter expression against which messages will be matched.

Returns

A task instance that represents the asynchronous add rule operation.

Applies to