SubscriptionClient.AddRuleAsync Method

Definition

Overloads

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.

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);
member this.AddRuleAsync : string * Microsoft.ServiceBus.Messaging.Filter -> System.Threading.Tasks.Task
Public Function AddRuleAsync (ruleName As String, filter As Filter) As Task

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

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);
member this.AddRuleAsync : Microsoft.ServiceBus.Messaging.RuleDescription -> System.Threading.Tasks.Task
Public Function AddRuleAsync (description As RuleDescription) As Task

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.

Applies to