Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DefaultControllerFactory.IControllerFactory.GetControllerSessionBehavior Method

This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code. This method calls the GetControllerSessionBehavior method.

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

SessionStateBehavior IControllerFactory.GetControllerSessionBehavior(
	RequestContext requestContext,
	string controllerName


Type: System.Web.Routing.RequestContext
The request context.
Type: System.String
The controller name.

Return Value

Type: System.Web.SessionState.SessionStateBehavior
The controller's session behavior.


IControllerFactory.GetControllerSessionBehavior(RequestContext, String)

This member is an explicit interface member implementation. It can be used only when a derived DefaultControllerFactory instance is cast to an IControllerFactory interface.

© 2015 Microsoft