IControllerFactory.CreateController(RequestContext, String) IControllerFactory.CreateController(RequestContext, String) Method

Definition

Creates the specified controller by using the specified request context.

public System.Web.Mvc.IController CreateController (System.Web.Routing.RequestContext requestContext, string controllerName);
abstract member CreateController : System.Web.Routing.RequestContext * string -> System.Web.Mvc.IController

Parameters

requestContext
RequestContext RequestContext

The request context.

controllerName
String String

The name of the controller.

Returns

The controller.

Applies to