NonActionAttribute 类

定义

指示控制器方法不是操作方法。

C#
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class NonActionAttribute : Attribute
继承
NonActionAttribute
属性

构造函数

NonActionAttribute()

指示控制器方法不是操作方法。

适用于

产品 版本
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