Topic.AddSubscription Method (String, SubscriptionDescription, FilterExpression)

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

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


Public Function AddSubscription ( _
    name As String, _
    description As SubscriptionDescription, _
    filter As FilterExpression _
) As Subscription
Dim instance As Topic
Dim name As String
Dim description As SubscriptionDescription
Dim filter As FilterExpression
Dim returnValue As Subscription

returnValue = instance.AddSubscription(name, _
    description, filter)
public Subscription AddSubscription(
    string name,
    SubscriptionDescription description,
    FilterExpression filter
Subscription^ AddSubscription(
    String^ name, 
    SubscriptionDescription^ description, 
    FilterExpression^ filter
member AddSubscription : 
        name:string * 
        description:SubscriptionDescription * 
        filter:FilterExpression -> Subscription 
public function AddSubscription(
    name : String, 
    description : SubscriptionDescription, 
    filter : FilterExpression
) : Subscription


Return Value

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

See Also


Topic Class

AddSubscription Overload

Microsoft.ServiceBus.Messaging Namespace