Export (0) Print
Expand All

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)

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.
Show:
© 2014 Microsoft