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)

'Declaration
Public Function AddRuleAsync ( _
	ruleName As String, _
	filter As Filter _
) As Task
'Usage
Dim instance As SubscriptionClient
Dim ruleName As String
Dim filter As Filter
Dim returnValue As Task

returnValue = instance.AddRuleAsync(ruleName, _
	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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft