Share via


IControllerFactory.GetControllerSessionBehavior Method

Gets the controller's session behavior.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Function GetControllerSessionBehavior ( _
    requestContext As RequestContext, _
    controllerName As String _
) As SessionStateBehavior
'Usage
Dim instance As IControllerFactory
Dim requestContext As RequestContext
Dim controllerName As String
Dim returnValue As SessionStateBehavior

returnValue = instance.GetControllerSessionBehavior(requestContext, _
    controllerName)
SessionStateBehavior GetControllerSessionBehavior(
    RequestContext requestContext,
    string controllerName
)
SessionStateBehavior GetControllerSessionBehavior(
    RequestContext^ requestContext, 
    String^ controllerName
)
function GetControllerSessionBehavior(
    requestContext : RequestContext, 
    controllerName : String
) : SessionStateBehavior

Parameters

  • controllerName
    Type: System.String
    The name of the controller whose session behavior you want to get.

Return Value

Type: SessionStateBehavior
The controller's session behavior.

See Also

Reference

IControllerFactory Interface

System.Web.Mvc Namespace