Condividi tramite


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

See Also

Reference

ControllerContext Class

ControllerContext Overload

System.Web.Mvc Namespace