This topic has not yet been rated - Rate this topic

IControllerFactory.CreateController Method

Creates the specified controller by using the specified request context.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
IController CreateController(
	RequestContext requestContext,
	string controllerName
)

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ