Export (0) Print
Expand All

IControllerFactory.GetControllerSessionBehavior Method

Gets the controller's session behavior.

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

SessionStateBehavior GetControllerSessionBehavior(
	RequestContext requestContext,
	string controllerName
)

Parameters

requestContext
Type: System.Web.Routing.RequestContext

The request context.

controllerName
Type: System.String

The name of the controller whose session behavior you want to get.

Return Value

Type: System.Web.SessionState.SessionStateBehavior
The controller's session behavior.
Show:
© 2014 Microsoft