SubscriptionClient.OnBeginAddRule Method

Definition

Executes upon calling the BeginAddRule operation.

protected abstract IAsyncResult OnBeginAddRule (Microsoft.ServiceBus.Messaging.RuleDescription description, TimeSpan timeout, AsyncCallback callback, object state);
abstract member OnBeginAddRule : Microsoft.ServiceBus.Messaging.RuleDescription * TimeSpan * AsyncCallback * obj -> IAsyncResult
Protected MustOverride Function OnBeginAddRule (description As RuleDescription, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

description
RuleDescription

The rule description that provides metadata of the rule to add.

timeout
TimeSpan

The time span this operation waits before it times out.

callback
AsyncCallback

An AsyncCallback delegate that references the method to invoke when the operation is complete.

state
Object

A user-defined object that contains state information about the asynchronous operation.

Returns

An IAsyncResult that references the asynchronous operation to add a new rule to the subscription.

Applies to