导出 (0) 打印
全部展开
EN
此内容没有您的语言版本,但有英语版本。

Topic.AddSubscription Method (String, SubscriptionDescription, RuleDescription)

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

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

public Subscription AddSubscription(
	string name,
	SubscriptionDescription description,
	RuleDescription ruleDescription
)

Parameters

name
Type: System.String
Name of the subscription.
description
Type: Microsoft.ServiceBus.Messaging.SubscriptionDescription
Metadata of the subscription to be created.
ruleDescription
Type: Microsoft.ServiceBus.Messaging.RuleDescription
The metadata describing the properties of the rule to be associated with the subscription.

Return Value

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

A default rule will be created using data from ruleDescription and named DefaultRuleName.

显示:
© 2014 Microsoft