NamespaceManager.GetSubscription Method (String, String)

 

Retrieves the topic from the service namespace.

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

public SubscriptionDescription GetSubscription(
	string topicPath,
	string name
)

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.SubscriptionDescription

A 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.

Return to top
Show: