ControllerContext Constructor (HttpContextBase, RouteData, ControllerBase)

Initializes a new instance of the ControllerContext class by using the specified HTTP context, URL route data, and controller.

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

new : 
        httpContext:HttpContextBase * 
        routeData:RouteData * 
        controller:ControllerBase -> ControllerContext

Parameters

httpContext
Type: System.Web.HttpContextBase

The HTTP context.

routeData
Type: System.Web.Routing.RouteData

The route data.

controller
Type: System.Web.Mvc.ControllerBase

The controller.

Show: