ControllerContext Constructor (RequestContext, ControllerBase)
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)
'Declaration Public Sub New ( _ requestContext As RequestContext, _ controller As ControllerBase _ ) 'Usage Dim requestContext As RequestContext Dim controller As ControllerBase Dim instance As New ControllerContext(requestContext, _ controller)
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. |
Show: