SubscriptionClient.AddRule Method (String, Filter)
Adds a rule to the current subscription with the specified name and filter expression.
Assembly: Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
Thrown if filter is null.
Thrown if ruleName is null, white space empty or not in the right format.
Thrown if ruleName length has exceeded the limit of 50 characters.
Thrown if the operation exceeded the timeout value set via .
Thrown if the client entity has been closed or aborted.
Thrown if the rule with the same name as ruleName already existed for this subscription.
Thrown when an attempt is made to add another rule with same name as one that has already been added.