IControllerFactory.CreateController(RequestContext, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Public Function CreateController (requestContext As RequestContext, controllerName As String) As IController
Parameters
- requestContext
- RequestContext
The request context.
- controllerName
- String
The name of the controller.
Returns
The controller.