QueueClient.BeginAcceptSessionReceiver Method (String, AsyncCallback, Object)

Asynchronous version of the AcceptSessionReceiver() method using PeekLock.

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

Syntax

'Declaration
Public Function BeginAcceptSessionReceiver ( _
    sessionId As String, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As QueueClient
Dim sessionId As String
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

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

Parameters

Return Value

Type: System.IAsyncResult
The result of the asynchronous operation.

See Also

Reference

QueueClient Class

BeginAcceptSessionReceiver Overload

Microsoft.ServiceBus.Messaging Namespace