Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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)
Syntax
'Declaration
Public Sub New ( _
requestContext As RequestContext, _
controller As ControllerBase _
)
public ControllerContext(
RequestContext requestContext,
ControllerBase controller
)
public:
ControllerContext(
RequestContext^ requestContext,
ControllerBase^ controller
)
Parameters
- requestContext
Type: System.Web.Routing.RequestContext
The request context.
- controller
Type: System.Web.Mvc.ControllerBase
The controller.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | One or both parameters are null reference (Nothing in Visual Basic). |