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)

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

returnValue = CType(instance, IControllerFactory).GetControllerSessionBehavior(requestContext, _
	controllerName)

Parameters

requestContext
Type: System.Web.Routing.RequestContext

The request context.

controllerName
Type: System.String

The controller name.

Return Value

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

Implements

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.

Show: