Share via


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);
member this.CreateSubscription : string * string * Microsoft.ServiceBus.Messaging.RuleDescription -> Microsoft.ServiceBus.Messaging.SubscriptionDescription
Public Function CreateSubscription (topicPath As String, name As String, ruleDescription As RuleDescription) As 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 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

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);
member this.CreateSubscription : string * string * Microsoft.ServiceBus.Messaging.Filter -> Microsoft.ServiceBus.Messaging.SubscriptionDescription
Public Function CreateSubscription (topicPath As String, name As String, filter As Filter) As 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 SubscriptionDescription of the newly created subscription.

Remarks

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

Applies to

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);
member this.CreateSubscription : string * string -> Microsoft.ServiceBus.Messaging.SubscriptionDescription
Public Function CreateSubscription (topicPath As String, name As String) As SubscriptionDescription

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.

Applies to

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);
member this.CreateSubscription : Microsoft.ServiceBus.Messaging.SubscriptionDescription * Microsoft.ServiceBus.Messaging.Filter -> Microsoft.ServiceBus.Messaging.SubscriptionDescription
Public Function CreateSubscription (description As SubscriptionDescription, filter As Filter) As 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 SubscriptionDescription of the newly created subscription.

Remarks

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

Applies to

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);
member this.CreateSubscription : Microsoft.ServiceBus.Messaging.SubscriptionDescription -> Microsoft.ServiceBus.Messaging.SubscriptionDescription
Public Function CreateSubscription (description As SubscriptionDescription) As SubscriptionDescription

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.

Applies to

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);
member this.CreateSubscription : Microsoft.ServiceBus.Messaging.SubscriptionDescription * Microsoft.ServiceBus.Messaging.RuleDescription -> Microsoft.ServiceBus.Messaging.SubscriptionDescription
Public Function CreateSubscription (description As SubscriptionDescription, ruleDescription As RuleDescription) As 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 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