Export (0) Print
Expand All
Expand Minimize

SubscriptionClient.BeginRemoveRule Method

Begins an asynchronous remove rule action.

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

public IAsyncResult BeginRemoveRule(
	string ruleName,
	AsyncCallback callback,
	Object state
)

Parameters

ruleName
Type: System.String
The name of the rule.
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 information about the receive operation. This object is passed to the EndRemoveRule(IAsyncResult) delegate when the operation is complete.

Return Value

Type: System.IAsyncResult
An IAsyncResult object that references the asynchronous RemoveRule(String).

ExceptionCondition
[MessagingEntityNotFoundException]

Thrown when rule does not exist.

ArgumentException

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

TimeoutException

ThrowN if the operation exceeded the timeout value set via OperationTimeout.

OperationCanceledException

Thrown if the client entity has been closed or aborted.

This is an asynchronous version of the RemoveRule(String) method.

Community Additions

ADD
Show:
© 2014 Microsoft