QueueClient.AcceptSessionReceiver Method (ReceiveMode)

Accepts a session receiver.

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

Syntax

'Declaration
Public Function AcceptSessionReceiver ( _
    receiveMode As ReceiveMode _
) As SessionReceiver
'Usage
Dim instance As QueueClient
Dim receiveMode As ReceiveMode
Dim returnValue As SessionReceiver

returnValue = instance.AcceptSessionReceiver(receiveMode)
public SessionReceiver AcceptSessionReceiver(
    ReceiveMode receiveMode
)
public:
SessionReceiver^ AcceptSessionReceiver(
    ReceiveMode receiveMode
)
member AcceptSessionReceiver : 
        receiveMode:ReceiveMode -> SessionReceiver 
public function AcceptSessionReceiver(
    receiveMode : ReceiveMode
) : SessionReceiver

Parameters

Return Value

Type: Microsoft.ServiceBus.Messaging.SessionReceiver
A SessionReceiver object.

See Also

Reference

QueueClient Class

AcceptSessionReceiver Overload

Microsoft.ServiceBus.Messaging Namespace