NamespaceManager.CreateSubscriptionAsync NamespaceManager.CreateSubscriptionAsync NamespaceManager.CreateSubscriptionAsync Method

Definition

Overloads

CreateSubscriptionAsync(SubscriptionDescription) CreateSubscriptionAsync(SubscriptionDescription) CreateSubscriptionAsync(SubscriptionDescription)

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

CreateSubscriptionAsync(SubscriptionDescription, Filter) CreateSubscriptionAsync(SubscriptionDescription, Filter)

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

CreateSubscriptionAsync(SubscriptionDescription, RuleDescription) CreateSubscriptionAsync(SubscriptionDescription, RuleDescription)

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

CreateSubscriptionAsync(String, String) CreateSubscriptionAsync(String, String) CreateSubscriptionAsync(String, String)

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

CreateSubscriptionAsync(String, String, Filter) CreateSubscriptionAsync(String, String, Filter)

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

CreateSubscriptionAsync(String, String, RuleDescription) CreateSubscriptionAsync(String, String, RuleDescription)

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

CreateSubscriptionAsync(SubscriptionDescription) CreateSubscriptionAsync(SubscriptionDescription) CreateSubscriptionAsync(SubscriptionDescription)

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

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription> CreateSubscriptionAsync (Microsoft.ServiceBus.Messaging.SubscriptionDescription description);
member this.CreateSubscriptionAsync : Microsoft.ServiceBus.Messaging.SubscriptionDescription -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription>
Public Function CreateSubscriptionAsync (description As SubscriptionDescription) As Task(Of SubscriptionDescription)

Parameters

description
SubscriptionDescription SubscriptionDescription SubscriptionDescription

A SubscriptionDescription object describing the attributes with which the new subscription will be created.

Returns

The asynchronously created subscription.

CreateSubscriptionAsync(SubscriptionDescription, Filter) CreateSubscriptionAsync(SubscriptionDescription, Filter)

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

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription> CreateSubscriptionAsync (Microsoft.ServiceBus.Messaging.SubscriptionDescription description, Microsoft.ServiceBus.Messaging.Filter filter);
member this.CreateSubscriptionAsync : Microsoft.ServiceBus.Messaging.SubscriptionDescription * Microsoft.ServiceBus.Messaging.Filter -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription>

Parameters

description
SubscriptionDescription SubscriptionDescription SubscriptionDescription

A SubscriptionDescription object describing the attributes with which the new subscription will be created.

filter
Filter Filter Filter

The filter expression used to capture messages satisfying the filtering expression value.

Returns

The asynchronously created subscription.

CreateSubscriptionAsync(SubscriptionDescription, RuleDescription) CreateSubscriptionAsync(SubscriptionDescription, RuleDescription)

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

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription> CreateSubscriptionAsync (Microsoft.ServiceBus.Messaging.SubscriptionDescription description, Microsoft.ServiceBus.Messaging.RuleDescription ruleDescription);
member this.CreateSubscriptionAsync : Microsoft.ServiceBus.Messaging.SubscriptionDescription * Microsoft.ServiceBus.Messaging.RuleDescription -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription>

Parameters

description
SubscriptionDescription SubscriptionDescription SubscriptionDescription

A SubscriptionDescription object describing the attributes with which the new subscription will be created.

ruleDescription
RuleDescription RuleDescription RuleDescription

A RuleDescription object describing the attributes with which the messages are matched and acted upon.

Returns

The asynchronously created subscription.

CreateSubscriptionAsync(String, String) CreateSubscriptionAsync(String, String) CreateSubscriptionAsync(String, String)

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

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription> CreateSubscriptionAsync (string topicPath, string name);
member this.CreateSubscriptionAsync : string * string -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription>
Public Function CreateSubscriptionAsync (topicPath As String, name As String) As Task(Of SubscriptionDescription)

Parameters

topicPath
String String String

The topic path relative to the service namespace base address.

name
String String String

The name of the subscription.

Returns

The asynchronously created subscription.

CreateSubscriptionAsync(String, String, Filter) CreateSubscriptionAsync(String, String, Filter)

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

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription> CreateSubscriptionAsync (string topicPath, string name, Microsoft.ServiceBus.Messaging.Filter filter);
member this.CreateSubscriptionAsync : string * string * Microsoft.ServiceBus.Messaging.Filter -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription>

Parameters

topicPath
String String String

The topic path relative to the service namespace base address.

name
String String String

The name of the subscription.

filter
Filter Filter Filter

The filter expression used to capture messages satisfying the filtering expression value.

Returns

The asynchronously created subscription.

CreateSubscriptionAsync(String, String, RuleDescription) CreateSubscriptionAsync(String, String, RuleDescription)

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

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription> CreateSubscriptionAsync (string topicPath, string name, Microsoft.ServiceBus.Messaging.RuleDescription ruleDescription);
member this.CreateSubscriptionAsync : string * string * Microsoft.ServiceBus.Messaging.RuleDescription -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.SubscriptionDescription>

Parameters

topicPath
String String String

The topic path relative to the service namespace base address.

name
String String String

The name of the subscription.

ruleDescription
RuleDescription RuleDescription RuleDescription

A RuleDescription object describing the attributes with which the messages are matched and acted upon.

Returns

The asynchronously created subscription.

Applies to