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)

'Declaration
Public Sub New ( _
	httpContext As HttpContextBase, _
	routeData As RouteData, _
	controller As ControllerBase _
)
'Usage
Dim httpContext As HttpContextBase 
Dim routeData As RouteData 
Dim controller As ControllerBase 

Dim instance As New ControllerContext(httpContext, _
	routeData, 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: