Поделиться через


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)

Syntax

'Declaration
Function CreateController ( _
    requestContext As RequestContext, _
    controllerName As String _
) As IController
IController CreateController(
    RequestContext requestContext,
    string controllerName
)
IController^ CreateController(
    RequestContext^ requestContext, 
    String^ controllerName
)

Parameters

Return Value

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

See Also

Reference

IControllerFactory Interface

System.Web.Mvc Namespace