SALES: 1-800-867-1380

SubscriptionClient.AddRuleAsync Method (String, Filter)

 

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

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public Task AddRuleAsync(
	string ruleName,
	Filter filter
)

Parameters

ruleName
Type: System.String

The name of the rule to add.

filter
Type: Microsoft.ServiceBus.Messaging.Filter

The filter expression against which messages will be matched.

Return Value

Type: System.Threading.Tasks.Task

A task instance that represents the asynchronous add rule operation.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2016 Microsoft