ControllerContext Constructors
Definition
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.
Overloads
ControllerContext() |
Creates a new ControllerContext. |
ControllerContext(ActionContext) |
Creates a new ControllerContext. |
ControllerContext()
- Source:
- ControllerContext.cs
- Source:
- ControllerContext.cs
- Source:
- ControllerContext.cs
Creates a new ControllerContext.
public:
ControllerContext();
public ControllerContext ();
Public Sub New ()
Remarks
The default constructor is provided for unit test purposes only.
Applies to
ControllerContext(ActionContext)
- Source:
- ControllerContext.cs
- Source:
- ControllerContext.cs
- Source:
- ControllerContext.cs
Creates a new ControllerContext.
public:
ControllerContext(Microsoft::AspNetCore::Mvc::ActionContext ^ context);
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.