Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SubscriptionClient.AddRule Method (RuleDescription)

Adds a new rule to the Subscription using the specified rule description.

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

public void AddRule(
	RuleDescription description
)

Parameters

description
Type: Microsoft.ServiceBus.Messaging.RuleDescription
The rule description that provides metadata of the rule to add.

ExceptionCondition
ArgumentNullException

Thrown if description is null.

ArgumentException

Thrown if description.Name is null, white space empty or not in the right format.

ArgumentOutOfRangeException

Thrown if description.Name length has exceeded the limit of 50 characters.

TimeoutException

Thrown if the operation exceeded the timeout value set by OperationTimeout.

OperationCanceledException

Thrown if the client entity has been closed or aborted.

MessagingEntityAlreadyExistsException

Thrown if the rule with the same name as description.Name already existed for this subscription.

MessagingEntityAlreadyExistsException

Thrown when an attempt is made to add another rule with same name as one that has already been added.

Community Additions

ADD
Show:
© 2015 Microsoft