SALES: 1-800-867-1380

NamespaceManager.CreateSubscriptionAsync Method (String, String)

Asynchronously creates a new subscription in the service namespace with the specified topic path and subscription name.

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

'Declaration
Public Function CreateSubscriptionAsync ( _
	topicPath As String, _
	name As String _
) As Task(Of SubscriptionDescription)
'Usage
Dim instance As NamespaceManager
Dim topicPath As String
Dim name As String
Dim returnValue As Task(Of SubscriptionDescription)

returnValue = instance.CreateSubscriptionAsync(topicPath, _
	name)

Parameters

topicPath
Type: System.String
The topic path relative to the service namespace base address.
name
Type: System.String
The name of the subscription.

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