NonActionAttribute Class

Indicates that a controller method is not an action method.

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

Syntax

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