ControllerContextAttribute Class

Specifies that a controller property should be set with the current Microsoft.AspNetCore.Mvc.ControllerContext when creating the controller. The property must have a public set method.

Namespace
Microsoft.AspNetCore.Mvc
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class ControllerContextAttribute : Attribute, _Attribute
class Microsoft.AspNetCore.Mvc.ControllerContextAttribute