MessagingFactory.OnBeginAddRule Method

Executes the begin add rule action.

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

Syntax

'Declaration
Protected MustOverride Function OnBeginAddRule ( _
    ruleName As String, _
    ruleDescription As RuleDescription, _
    subscription As Subscription, _
    timeout As TimeSpan, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim ruleName As String
Dim ruleDescription As RuleDescription
Dim subscription As Subscription
Dim timeout As TimeSpan
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = Me.OnBeginAddRule(ruleName, _
    ruleDescription, subscription, timeout, _
    callback, state)
protected abstract IAsyncResult OnBeginAddRule(
    string ruleName,
    RuleDescription ruleDescription,
    Subscription subscription,
    TimeSpan timeout,
    AsyncCallback callback,
    Object state
)
protected:
virtual IAsyncResult^ OnBeginAddRule(
    String^ ruleName, 
    RuleDescription^ ruleDescription, 
    Subscription^ subscription, 
    TimeSpan timeout, 
    AsyncCallback^ callback, 
    Object^ state
) abstract
abstract OnBeginAddRule : 
        ruleName:string * 
        ruleDescription:RuleDescription * 
        subscription:Subscription * 
        timeout:TimeSpan * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
protected abstract function OnBeginAddRule(
    ruleName : String, 
    ruleDescription : RuleDescription, 
    subscription : Subscription, 
    timeout : TimeSpan, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

  • callback
    Type: System.AsyncCallback
    References the method to invoke when the operation is complete.
  • state
    Type: System.Object
    Contains information about the operation.

Return Value

Type: System.IAsyncResult
.

See Also

Reference

MessagingFactory Class

Microsoft.ServiceBus.Messaging Namespace