SubscriptionClient.AddRuleAsync SubscriptionClient.AddRuleAsync SubscriptionClient.AddRuleAsync SubscriptionClient.AddRuleAsync Method

Definition

Overloads

AddRuleAsync(RuleDescription) AddRuleAsync(RuleDescription) AddRuleAsync(RuleDescription) AddRuleAsync(RuleDescription)

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

AddRuleAsync(String, Filter) AddRuleAsync(String, Filter) AddRuleAsync(String, Filter)

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

AddRuleAsync(RuleDescription) AddRuleAsync(RuleDescription) AddRuleAsync(RuleDescription) 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);
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 RuleDescription RuleDescription 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) AddRuleAsync(String, Filter) AddRuleAsync(String, Filter)

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

public:
 System::Threading::Tasks::Task ^ AddRuleAsync(System::String ^ ruleName, Microsoft::ServiceBus::Messaging::Filter ^ filter);
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
Parameters
ruleName
String String String String

The name of the rule to add.

filter
Filter Filter Filter Filter

The filter expression against which messages will be matched.

Returns

A task instance that represents the asynchronous add rule operation.

Applies to