IControllerActivator.Create(RequestContext, Type) 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.
When implemented in a class, creates a controller.
public System.Web.Mvc.IController Create (System.Web.Routing.RequestContext requestContext, Type controllerType);
abstract member Create : System.Web.Routing.RequestContext * Type -> System.Web.Mvc.IController
Public Function Create (requestContext As RequestContext, controllerType As Type) As IController
Parameters
- requestContext
- RequestContext
The request context.
- controllerType
- Type
The controller type.
Returns
The created controller.