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 the operation exceeded the timeout value set via OperationTimeout.
Thrown when an attempt is made to add another rule with same name as one that has already been added.
Thrown if ruleName is null, white space empty or not in the right format.
Thrown if the rule with the same name as ruleName already existed for this subscription.
Thrown if the client entity has been closed or aborted.
Thrown if ruleName length has exceeded the limit of 50 characters.