SubscriptionClient.BeginCreateReceiver Method (String, 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 ( _
subQueueName As String, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim instance As SubscriptionClient
Dim subQueueName As String
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginCreateReceiver(subQueueName, _
callback, state)
public IAsyncResult BeginCreateReceiver(
string subQueueName,
AsyncCallback callback,
Object state
)
public:
virtual IAsyncResult^ BeginCreateReceiver(
String^ subQueueName,
AsyncCallback^ callback,
Object^ state
) sealed
abstract BeginCreateReceiver :
subQueueName:string *
callback:AsyncCallback *
state:Object -> IAsyncResult
override BeginCreateReceiver :
subQueueName:string *
callback:AsyncCallback *
state:Object -> IAsyncResult
public final function BeginCreateReceiver(
subQueueName : String,
callback : AsyncCallback,
state : Object
) : IAsyncResult
Parameters
- subQueueName
Type: System.String
The name of the sub-queue.
- 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
An IAsyncResult object that references the asynchronous CreateReceiver().