SALES: 1-800-867-1380
This topic has not yet been rated - Rate this topic

SubscriptionClient.BeginAddRule Method (RuleDescription, AsyncCallback, Object)

Begins an asynchronous operation to add a new rule to the subscription.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
public IAsyncResult BeginAddRule(
	RuleDescription description,
	AsyncCallback callback,
	Object state
)

Parameters

description
Type: Microsoft.ServiceBus.Messaging.RuleDescription
The rule description that provides metadata of the rule to add.
callback
Type: System.AsyncCallback
An AsyncCallback delegate that references the method to invoke when the operation is complete.
state
Type: System.Object
A user-defined object that contains state information about the asynchronous operation.

Return Value

Type: System.IAsyncResult
An IAsyncResult that references the asynchronous operation to add a new rule to the subscription.
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 via 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.