MessageReceiver.OnBeginComplete Method

Executes upon calling the OnComplete or BeginComplete operation.

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


Protected MustOverride Function OnBeginComplete ( _
    trackingContext As TrackingContext, _
    lockTokens As IEnumerable(Of Guid), _
    timeout As TimeSpan, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
Dim trackingContext As TrackingContext
Dim lockTokens As IEnumerable(Of Guid)
Dim timeout As TimeSpan
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = Me.OnBeginComplete(trackingContext, _
    lockTokens, timeout, callback, state)
protected abstract IAsyncResult OnBeginComplete(
    TrackingContext trackingContext,
    IEnumerable<Guid> lockTokens,
    TimeSpan timeout,
    AsyncCallback callback,
    Object state
virtual IAsyncResult^ OnBeginComplete(
    TrackingContext^ trackingContext, 
    IEnumerable<Guid>^ lockTokens, 
    TimeSpan timeout, 
    AsyncCallback^ callback, 
    Object^ state
) abstract
abstract OnBeginComplete : 
        trackingContext:TrackingContext * 
        lockTokens:IEnumerable<Guid> * 
        timeout:TimeSpan * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
protected abstract function OnBeginComplete(
    trackingContext : TrackingContext, 
    lockTokens : IEnumerable<Guid>, 
    timeout : TimeSpan, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult


  • timeout
    Type: System.TimeSpan
    The time span the operation waits before it times out.
  • state
    Type: System.Object
    A user-defined object that contains state information about the asynchronous operation.

Return Value

Type: System.IAsyncResult
An IAsyncResult that references the asynchronous operation to complete receiving of messages.

See Also


MessageReceiver Class

Microsoft.ServiceBus.Messaging Namespace