QueueClient.BeginCreateReceiver Method (ReceiveMode, AsyncCallback, Object)
Asynchronous version of the CreateReceiver() method.
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)
Syntax
'Declaration
Public Function BeginCreateReceiver ( _
receiveMode As ReceiveMode, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim instance As QueueClient
Dim receiveMode As ReceiveMode
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginCreateReceiver(receiveMode, _
callback, state)
public IAsyncResult BeginCreateReceiver(
ReceiveMode receiveMode,
AsyncCallback callback,
Object state
)
public:
virtual IAsyncResult^ BeginCreateReceiver(
ReceiveMode receiveMode,
AsyncCallback^ callback,
Object^ state
) sealed
abstract BeginCreateReceiver :
receiveMode:ReceiveMode *
callback:AsyncCallback *
state:Object -> IAsyncResult
override BeginCreateReceiver :
receiveMode:ReceiveMode *
callback:AsyncCallback *
state:Object -> IAsyncResult
public final function BeginCreateReceiver(
receiveMode : ReceiveMode,
callback : AsyncCallback,
state : Object
) : IAsyncResult
Parameters
- receiveMode
Type: Microsoft.ServiceBus.Messaging.ReceiveMode
The ReceiveMode receive mode.
- callback
Type: System.AsyncCallback
An AsyncCallback delegate that references the method to invoke when the operation is complete.
- state
Type: System.Object
A user-defined object that contains information about the receive operation. This object is passed to the EndCreateReceiver(IAsyncResult) delegate when the operation is complete.
Return Value
Type: System.IAsyncResult
.