NamespaceManager.CreateSubscription Method
Creates a new subscription inside the service namespace.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
CreateSubscription(SubscriptionDescription) | Creates a new subscription in the service namespace with the specified subscription description. |
|
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, RuleDescription) | Creates a new subscription in the service namespace with the specified subscription description 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, RuleDescription) | Creates a new subscription in the service namespace with the specified topic path, subscription name, and rule description. |
If you do not create a subscription using one of the overloads that explicitly specifies a rule description, a default rule will be created for you.
Note
|
|---|
|
The only permitted characters in a subscription name are “0-9,” “a-z,” “A-Z,” “_” and “.” (period). If you create a subscription with a name containing special or encoded characters (for example, "test?Name=value&" or "test%3FName%3Dvalue%26", a ArgumentException or WebException with the message "The remote server returned an error: (401) Unauthorized" will be generated. Subscription names cannot be nested (for example, Test/MySubscription). |
Note