NamespaceManager.CreateSubscription Method

Definition

Overloads

CreateSubscription(String, String, RuleDescription)

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

CreateSubscription(String, String, Filter)

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

CreateSubscription(String, String)

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

CreateSubscription(SubscriptionDescription, Filter)

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

CreateSubscription(SubscriptionDescription)

Creates a new subscription in the service namespace with the specified subscription description.

CreateSubscription(SubscriptionDescription, RuleDescription)

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

CreateSubscription(String, String, RuleDescription)

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

public Microsoft.ServiceBus.Messaging.SubscriptionDescription CreateSubscription (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 SubscriptionDescription of the newly created subscription.

Remarks

A default rule will be created using data from ruleDescription. If Name is null or white space, then the name of the rule created will be DefaultRuleName.

CreateSubscription(String, String, Filter)

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

public Microsoft.ServiceBus.Messaging.SubscriptionDescription CreateSubscription (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 SubscriptionDescription of the newly created subscription.

Remarks

A default rule will be created using data from filter and named as DefaultRuleName.

CreateSubscription(String, String)

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

public Microsoft.ServiceBus.Messaging.SubscriptionDescription CreateSubscription (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 SubscriptionDescription of the newly created subscription.

Remarks

Be default, A "pass-through" filter is created for this subscription, which means it will allow all message to go to this subscription. The name of the filter is DefaultRuleName.

CreateSubscription(SubscriptionDescription, Filter)

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

public Microsoft.ServiceBus.Messaging.SubscriptionDescription CreateSubscription (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 SubscriptionDescription of the newly created subscription.

Remarks

A default rule will be created using data from filter and named as DefaultRuleName.

CreateSubscription(SubscriptionDescription)

Creates a new subscription in the service namespace with the specified subscription description.

public Microsoft.ServiceBus.Messaging.SubscriptionDescription CreateSubscription (Microsoft.ServiceBus.Messaging.SubscriptionDescription description);
Parameters
description
SubscriptionDescription

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

Returns

The SubscriptionDescription of the newly created subscription.

Remarks

Be default, A "pass-through" filter is created for this subscription, which means it will allow all message to go to this subscription. The name of the filter is DefaultRuleName.

CreateSubscription(SubscriptionDescription, RuleDescription)

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

public Microsoft.ServiceBus.Messaging.SubscriptionDescription CreateSubscription (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 SubscriptionDescription of the newly created subscription.

Remarks

A default rule will be created using data from ruleDescription. If Name is null or white space, then the name of the rule created will be DefaultRuleName.

Applies to