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);
Parameters
description
SubscriptionDescription

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

Returns

The asynchronously created subscription.

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);
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.

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);
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.

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);
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.

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);
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.

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);
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