Share via


MessagingFactory.OnAcceptMessageSession Method

Executes the accept message session.

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

Syntax

'Declaration
Protected Overridable Function OnAcceptMessageSession ( _
    receiveMode As ReceiveMode, _
    timeout As TimeSpan _
) As MessageSession
'Usage
Dim receiveMode As ReceiveMode
Dim timeout As TimeSpan
Dim returnValue As MessageSession

returnValue = Me.OnAcceptMessageSession(receiveMode, _
    timeout)
protected virtual MessageSession OnAcceptMessageSession(
    ReceiveMode receiveMode,
    TimeSpan timeout
)
protected:
virtual MessageSession^ OnAcceptMessageSession(
    ReceiveMode receiveMode, 
    TimeSpan timeout
)
abstract OnAcceptMessageSession : 
        receiveMode:ReceiveMode * 
        timeout:TimeSpan -> MessageSession 
override OnAcceptMessageSession : 
        receiveMode:ReceiveMode * 
        timeout:TimeSpan -> MessageSession 
protected function OnAcceptMessageSession(
    receiveMode : ReceiveMode, 
    timeout : TimeSpan
) : MessageSession

Parameters

Return Value

Type: Microsoft.ServiceBus.Messaging.MessageSession
The MessageSession that has been executed.

See Also

Reference

MessagingFactory Class

Microsoft.ServiceBus.Messaging Namespace