Share via


MessageReceiver.BeginAbandon Method (BrokeredMessage, AsyncCallback, Object)

Begins an abandon operation.

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

Syntax

'Declaration
Public Function BeginAbandon ( _
    message As BrokeredMessage, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As MessageReceiver
Dim message As BrokeredMessage
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginAbandon(message, _
    callback, state)
public IAsyncResult BeginAbandon(
    BrokeredMessage message,
    AsyncCallback callback,
    Object state
)
public:
IAsyncResult^ BeginAbandon(
    BrokeredMessage^ message, 
    AsyncCallback^ callback, 
    Object^ state
)
member BeginAbandon : 
        message:BrokeredMessage * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
public function BeginAbandon(
    message : BrokeredMessage, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

  • state
    Type: System.Object
    A user-defined object that contains information about the receive operation. This object is passed to the EndAbandon(IAsyncResult) delegate when the operation is complete.

Return Value

Type: System.IAsyncResult
An IAsyncResult object that references the asynchronous AcceptSessionReceiver.

See Also

Reference

MessageReceiver Class

BeginAbandon Overload

Microsoft.ServiceBus.Messaging Namespace