MessagingFactory.OnBeginCreateMessageReceiver Method

Executes the begin create message receiver action.

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

Syntax

'Declaration
Protected MustOverride Function OnBeginCreateMessageReceiver ( _
    entityName As String, _
    partitionId As Integer, _
    receiveMode As ReceiveMode, _
    timeout As TimeSpan, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim entityName As String
Dim partitionId As Integer
Dim receiveMode As ReceiveMode
Dim timeout As TimeSpan
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = Me.OnBeginCreateMessageReceiver(entityName, _
    partitionId, receiveMode, timeout, _
    callback, state)
protected abstract IAsyncResult OnBeginCreateMessageReceiver(
    string entityName,
    int partitionId,
    ReceiveMode receiveMode,
    TimeSpan timeout,
    AsyncCallback callback,
    Object state
)
protected:
virtual IAsyncResult^ OnBeginCreateMessageReceiver(
    String^ entityName, 
    int partitionId, 
    ReceiveMode receiveMode, 
    TimeSpan timeout, 
    AsyncCallback^ callback, 
    Object^ state
) abstract
abstract OnBeginCreateMessageReceiver : 
        entityName:string * 
        partitionId:int * 
        receiveMode:ReceiveMode * 
        timeout:TimeSpan * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult 
protected abstract function OnBeginCreateMessageReceiver(
    entityName : String, 
    partitionId : int, 
    receiveMode : ReceiveMode, 
    timeout : TimeSpan, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult

Parameters

  • partitionId
    Type: System.Int32
    Identifier for the partition.
  • callback
    Type: System.AsyncCallback
    References the method to invoke when the operation is complete.
  • state
    Type: System.Object
    Contains information about the operation.

Return Value

Type: System.IAsyncResult
.

See Also

Reference

MessagingFactory Class

Microsoft.ServiceBus.Messaging Namespace