NamespaceManager.GetSubscription Method
Retrieves the topic from the service namespace.
Namespace: Microsoft.ServiceBus
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
Parameters
- topicPath
- Type: System.String
The path of the topic relative to the service namespace base address.
- name
- Type: System.String
The name of the subscription.
Return Value
Type: Microsoft.ServiceBus.Messaging.SubscriptionDescriptionA SubscriptionDescription handle to the subscription, or a MessagingEntityNotFoundException exception if the subscription does not exist in the service namespace.
| Exception | Condition |
|---|---|
| MessagingEntityNotFoundException | The subscription does not exist in the service namespace. |