ControllerContext Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ControllerContext() |
Creates a new ControllerContext. |
ControllerContext(ActionContext) |
Creates a new ControllerContext. |
- Source:
- ControllerContext.cs
- Source:
- ControllerContext.cs
- Source:
- ControllerContext.cs
Creates a new ControllerContext.
public:
ControllerContext();
C#
public ControllerContext ();
Public Sub New ()
Remarks
The default constructor is provided for unit test purposes only.
Applies to
ASP.NET Core 9.0 and other versions
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
- Source:
- ControllerContext.cs
- Source:
- ControllerContext.cs
- Source:
- ControllerContext.cs
Creates a new ControllerContext.
public:
ControllerContext(Microsoft::AspNetCore::Mvc::ActionContext ^ context);
C#
public ControllerContext (Microsoft.AspNetCore.Mvc.ActionContext context);
new Microsoft.AspNetCore.Mvc.ControllerContext : Microsoft.AspNetCore.Mvc.ActionContext -> Microsoft.AspNetCore.Mvc.ControllerContext
Public Sub New (context As ActionContext)
Parameters
- context
- ActionContext
The ActionContext associated with the current request.
Applies to
ASP.NET Core 9.0 and other versions
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |