SubscriptionClient.CreateReceiver Method (ReceiveMode)

Creates a new message receiver.

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

Syntax

'Declaration
Public Function CreateReceiver ( _
    receiveMode As ReceiveMode _
) As MessageReceiver
'Usage
Dim instance As SubscriptionClient
Dim receiveMode As ReceiveMode
Dim returnValue As MessageReceiver

returnValue = instance.CreateReceiver(receiveMode)
public MessageReceiver CreateReceiver(
    ReceiveMode receiveMode
)
public:
virtual MessageReceiver^ CreateReceiver(
    ReceiveMode receiveMode
) sealed
abstract CreateReceiver : 
        receiveMode:ReceiveMode -> MessageReceiver 
override CreateReceiver : 
        receiveMode:ReceiveMode -> MessageReceiver 
public final function CreateReceiver(
    receiveMode : ReceiveMode
) : MessageReceiver

Parameters

Return Value

Type: Microsoft.ServiceBus.Messaging.MessageReceiver
A newly created MessageReceiver object.

See Also

Reference

SubscriptionClient Class

CreateReceiver Overload

Microsoft.ServiceBus.Messaging Namespace