Share via


MessageReceiver.BeginTryReceive Method (AsyncCallback, Object)

Asynchronous version of the TryReceive() method. Begins a try receive operation.

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

Syntax

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

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

Parameters

Return Value

Type: System.IAsyncResult
An IAsyncResult object that references the asynchronously completed operation.

See Also

Reference

MessageReceiver Class

BeginTryReceive Overload

Microsoft.ServiceBus.Messaging Namespace