ControllerContext Constructor (RequestContext, ControllerBase)
Visual Studio 2010
Initializes a new instance of the ControllerContext class by using the specified request context and controller.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Sub New ( _ requestContext As RequestContext, _ controller As ControllerBase _ )
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 Nothing. |
Community Additions
ADD
Show: