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)


Public Function BeginAcceptSessionReceiver ( _
    sessionId As String, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
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
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


Return Value

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

See Also


QueueClient Class

BeginAcceptSessionReceiver Overload

Microsoft.ServiceBus.Messaging Namespace