ControllerContext Constructor

 

Initializes a new instance of the ControllerContext class.

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

NameDescription
System_CAPS_pubmethodControllerContext()

Initializes a new instance of the ControllerContext class.

System_CAPS_protmethodControllerContext(ControllerContext)

Initializes a new instance of the ControllerContext class by using the specified controller context.

System_CAPS_pubmethodControllerContext(HttpContextBase, RouteData, ControllerBase)

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

System_CAPS_pubmethodControllerContext(RequestContext, ControllerBase)

Initializes a new instance of the ControllerContext class by using the specified request context and controller.

Return to top

ControllerContext Constructor ()

Initializes a new instance of the ControllerContext class.

new : unit -> ControllerContext
Return to top

ControllerContext Constructor (ControllerContext)

Initializes a new instance of the ControllerContext class by using the specified controller context.

new : 
        controllerContext:ControllerContext -> ControllerContext

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The controller context.

Exception Condition
ArgumentNullException

The controllerContext parameter is null.

Return to top

ControllerContext Constructor (HttpContextBase, RouteData, ControllerBase)

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

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.

Return to top

ControllerContext Constructor (RequestContext, ControllerBase)

Initializes a new instance of the ControllerContext class by using the specified request context and controller.

new : 
        requestContext:RequestContext *
        controller:ControllerBase -> ControllerContext

Parameters

requestContext
Type: System.Web.Routing.RequestContext

The request context.

controller
Type: System.Web.Mvc.ControllerBase

The controller.

Exception Condition
ArgumentNullException

One or both parameters are null.

Return to top
Show: