Sdílet prostřednictvím


NamespaceManager.CreateSubscriptionAsync Method

Definition

Overloads

CreateSubscriptionAsync(SubscriptionDescription)

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

CreateSubscriptionAsync(SubscriptionDescription, Filter)

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

CreateSubscriptionAsync(SubscriptionDescription, RuleDescription)

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

CreateSubscriptionAsync(String, String)

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

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)

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

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

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

Returns

The asynchronously created subscription.

Applies to

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>
Public Function CreateSubscriptionAsync (description As SubscriptionDescription, filter As Filter) As Task(Of SubscriptionDescription)

Parameters

description
SubscriptionDescription

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

filter
Filter

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

Returns

The asynchronously created subscription.

Applies to

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>
Public Function CreateSubscriptionAsync (description As SubscriptionDescription, ruleDescription As RuleDescription) As Task(Of SubscriptionDescription)

Parameters

description
SubscriptionDescription

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

ruleDescription
RuleDescription

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

Returns

The asynchronously created subscription.

Applies to

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

The topic path relative to the service namespace base address.

name
String

The name of the subscription.

Returns

The asynchronously created subscription.

Applies to

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>
Public Function CreateSubscriptionAsync (topicPath As String, name As String, filter As Filter) As Task(Of SubscriptionDescription)

Parameters

topicPath
String

The topic path relative to the service namespace base address.

name
String

The name of the subscription.

filter
Filter

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

Returns

The asynchronously created subscription.

Applies to

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>
Public Function CreateSubscriptionAsync (topicPath As String, name As String, ruleDescription As RuleDescription) As Task(Of SubscriptionDescription)

Parameters

topicPath
String

The topic path relative to the service namespace base address.

name
String

The name of the subscription.

ruleDescription
RuleDescription

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

Returns

The asynchronously created subscription.

Applies to