Topic.AddSubscription Method (String, FilterExpression)

Adds a subscription to this topic, with the supplied FilterExpression as the default filter.

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

'Declaration
Public Function AddSubscription ( _
	name As String, _
	filter As FilterExpression _
) As Subscription
'Usage
Dim instance As Topic
Dim name As String
Dim filter As FilterExpression
Dim returnValue As Subscription

returnValue = instance.AddSubscription(name, _
	filter)

Parameters

name
Type: System.String
Name of the subscription.
filter
Type: Microsoft.ServiceBus.Messaging.Filters.FilterExpression
The filter.

Return Value

Type: Microsoft.ServiceBus.Messaging.Subscription
An instance of the Subscription management entity.
Show: