IControllerActivator.Create Method

When implemented in a class, creates a controller.

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

IController Create(
	RequestContext requestContext,
	Type controllerType
)

Parameters

requestContext
Type: System.Web.Routing.RequestContext

The request context.

controllerType
Type: System.Type

The controller type.

Return Value

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