ActionContextAttribute Class

Specifies that a controller property should be set with the current Microsoft.AspNetCore.Mvc.ActionContext 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 ActionContextAttribute : Attribute, _Attribute
class Microsoft.AspNetCore.Mvc.ActionContextAttribute