IControllerFactory.CreateController Method

Visual Studio 2010

Creates the specified controller by using the specified request context.

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

'Declaration
Function CreateController ( _
	requestContext As RequestContext, _
	controllerName As String _
) As IController

Parameters

requestContext
Type: System.Web.Routing.RequestContext
The request context.
controllerName
Type: System.String
The name of the controller.

Return Value

Type: System.Web.Mvc.IController
The controller.

Community Additions

ADD
Show: