SALES: 1-800-867-1380

NamespaceManager.CreateSubscription Method (SubscriptionDescription, Filter)

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

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

'Declaration
Public Function CreateSubscription ( _
	description As SubscriptionDescription, _
	filter As Filter _
) As SubscriptionDescription
'Usage
Dim instance As NamespaceManager 
Dim description As SubscriptionDescription 
Dim filter As Filter 
Dim returnValue As SubscriptionDescription 

returnValue = instance.CreateSubscription(description, _
	filter)

Parameters

description
Type: Microsoft.ServiceBus.Messaging.SubscriptionDescription
A SubscriptionDescription object describing the attributes with which the new subscription will be created.
filter
Type: Microsoft.ServiceBus.Messaging.Filter
The filter expression used to capture messages satisfying the filtering expression value.

Return Value

Type: Microsoft.ServiceBus.Messaging.SubscriptionDescription
The SubscriptionDescription of the newly created subscription.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft