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

SubscriptionClient.BeginRemoveRule Method

Begins an asynchronous remove rule action.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
'Declaration
Public Function BeginRemoveRule ( _
	ruleName As String, _
	callback As AsyncCallback, _
	state As Object _
) As IAsyncResult
'Usage
Dim instance As SubscriptionClient
Dim ruleName As String
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginRemoveRule(ruleName, _
	callback, 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.

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.