ResourceControllerFactory.GetControllerSessionBehavior Method (RequestContext, String)
Gets the controller’s session behavior.
Namespace: Microsoft.Web.Mvc.Resources
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public SessionStateBehavior GetControllerSessionBehavior(
RequestContext requestContext,
string controllerName
)
public:
virtual SessionStateBehavior GetControllerSessionBehavior(
RequestContext^ requestContext,
String^ controllerName
) sealed
abstract GetControllerSessionBehavior :
requestContext:RequestContext *
controllerName:string -> SessionStateBehavior
override GetControllerSessionBehavior :
requestContext:RequestContext *
controllerName:string -> SessionStateBehavior
Public Function GetControllerSessionBehavior (
requestContext As RequestContext,
controllerName As String
) As SessionStateBehavior
Parameters
requestContext
Type: System.Web.Routing.RequestContextThe request context.
controllerName
Type: System.StringThe name of the controller whose session behavior you want to get.
Return Value
Type: System.Web.SessionState.SessionStateBehavior
The controller’s session behavior.
Implements
IControllerFactory.GetControllerSessionBehavior(RequestContext, String)
See Also
ResourceControllerFactory Class
Microsoft.Web.Mvc.Resources Namespace
Return to top