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)
Syntax
'Declaration
Public Sub New ( _
httpContext As HttpContextBase, _
routeData As RouteData, _
controller As ControllerBase _
)
public ControllerContext(
HttpContextBase httpContext,
RouteData routeData,
ControllerBase controller
)
public:
ControllerContext(
HttpContextBase^ httpContext,
RouteData^ routeData,
ControllerBase^ controller
)
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.