NamespaceManager.CreateSubscription NamespaceManager.CreateSubscription NamespaceManager.CreateSubscription Method

Definition

Overloads

CreateSubscription(String, String, RuleDescription) 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) 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) CreateSubscription(String, String) CreateSubscription(String, String)

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

CreateSubscription(SubscriptionDescription, Filter) CreateSubscription(SubscriptionDescription, Filter)

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

CreateSubscription(SubscriptionDescription) CreateSubscription(SubscriptionDescription) CreateSubscription(SubscriptionDescription)

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

CreateSubscription(SubscriptionDescription, RuleDescription) CreateSubscription(SubscriptionDescription, RuleDescription)

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

CreateSubscription(String, String, RuleDescription) 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

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

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

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

Remarks

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

CreateSubscription(String, String) CreateSubscription(String, String) 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 String String

The topic path relative to the service namespace base address.

name
String String String

The name of the subscription.

Returns

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

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

Remarks

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

CreateSubscription(SubscriptionDescription) CreateSubscription(SubscriptionDescription) 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 SubscriptionDescription SubscriptionDescription

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

Returns

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

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

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