Subscription.CreateAsync Method (String, String, String)
Asynchronously creates a subscription with a specified name.
Namespace: Microsoft.WindowsAzure.Messaging
Assembly: Microsoft.WindowsAzure.Messaging.Managed (in Microsoft.WindowsAzure.Messaging.Managed.dll)
Syntax
public static Task<Subscription> CreateAsync(
string topicPath,
string subscriptionName,
string connectionString
)
public:
static Task<Subscription^>^ CreateAsync(
String^ topicPath,
String^ subscriptionName,
String^ connectionString
)
static member CreateAsync :
topicPath:string *
subscriptionName:string *
connectionString:string -> Task<Subscription>
Public Shared Function CreateAsync (
topicPath As String,
subscriptionName As String,
connectionString As String
) As Task(Of Subscription)
Parameters
topicPath
Type: System.StringThe path of the topic that this subscription belongs to.
subscriptionName
Type: System.StringThe name of the subscription.
connectionString
Type: System.StringThe connection string.
Return Value
Type: System.Threading.Tasks.Task<Subscription>
The created subscription.
See Also
CreateAsync Overload
Subscription Class
Microsoft.WindowsAzure.Messaging Namespace
Return to top