ControllerContext Constructors

Definition

Overloads

ControllerContext()

Source:
ControllerContext.cs
Source:
ControllerContext.cs
Source:
ControllerContext.cs

Creates a new ControllerContext.

C#
public ControllerContext ();

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

ControllerContext(ActionContext)

Source:
ControllerContext.cs
Source:
ControllerContext.cs
Source:
ControllerContext.cs

Creates a new ControllerContext.

C#
public ControllerContext (Microsoft.AspNetCore.Mvc.ActionContext context);

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