SALES: 1-800-867-1380

NamespaceManager.CreateSubscriptionAsync Method (SubscriptionDescription, RuleDescription)

Asynchronously creates a new subscription in the service namespace with the specified subscription description and rule description.

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

'Declaration
Public Function CreateSubscriptionAsync ( _
	description As SubscriptionDescription, _
	ruleDescription As RuleDescription _
) As Task(Of SubscriptionDescription)
'Usage
Dim instance As NamespaceManager
Dim description As SubscriptionDescription
Dim ruleDescription As RuleDescription
Dim returnValue As Task(Of SubscriptionDescription)

returnValue = instance.CreateSubscriptionAsync(description, _
	ruleDescription)

Parameters

description
Type: Microsoft.ServiceBus.Messaging.SubscriptionDescription
A SubscriptionDescription object describing the attributes with which the new subscription will be created.
ruleDescription
Type: Microsoft.ServiceBus.Messaging.RuleDescription
A RuleDescription object describing the attributes with which the messages are matched and acted upon.

Return Value

Type: System.Threading.Tasks.Task(Of SubscriptionDescription)
The asynchronously created subscription.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft