SubscriptionClient.OnBeginAddRule Method

Begins adding a Rule to a Subscription through the run-time client protocol.

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

Syntax

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

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

Parameters

Return Value

Type: System.IAsyncResult
An IAsyncResult that references the asynchronous BeginAddRule(String, FilterExpression, AsyncCallback, Object).

See Also

Reference

SubscriptionClient Class

Microsoft.ServiceBus.Messaging Namespace