SubscriptionClient.OnBeginAddRule(RuleDescription, TimeSpan, AsyncCallback, Object) SubscriptionClient.OnBeginAddRule(RuleDescription, TimeSpan, AsyncCallback, Object) SubscriptionClient.OnBeginAddRule(RuleDescription, TimeSpan, AsyncCallback, Object) 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 RuleDescription RuleDescription

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

timeout
TimeSpan TimeSpan TimeSpan

The time span this operation waits before it times out.

callback
AsyncCallback AsyncCallback AsyncCallback

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

state
Object Object 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