Export (0) Print
Expand All

ControllerContext Constructor (RequestContext, ControllerBase)

.NET Framework 4

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

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

public ControllerContext(
	RequestContext requestContext,
	ControllerBase controller
)

Parameters

requestContext
Type: System.Web.Routing.RequestContext
The request context.
controller
Type: System.Web.Mvc.ControllerBase
The controller.

ExceptionCondition
ArgumentNullException

One or both parameters are null.

Community Additions

ADD
Show:
© 2014 Microsoft