IControllerFactory.GetControllerSessionBehavior Method (RequestContext, String)

 

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.

Return to top
Show: