SALES: 1-800-867-1380

NamespaceManager.CreateSubscription Method (SubscriptionDescription, RuleDescription)


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

Namespace:   Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public SubscriptionDescription CreateSubscription(
	SubscriptionDescription description,
	RuleDescription ruleDescription


Type: Microsoft.ServiceBus.Messaging.SubscriptionDescription

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

Type: Microsoft.ServiceBus.Messaging.RuleDescription

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

Return Value

Type: Microsoft.ServiceBus.Messaging.SubscriptionDescription

The SubscriptionDescription of the newly created subscription.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft