NonActionAttribute 类
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示控制器方法不是操作方法。
public ref class NonActionAttribute sealed : Attribute
C#
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class NonActionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type NonActionAttribute = class
inherit Attribute
Public NotInheritable Class NonActionAttribute
Inherits Attribute
- 继承
-
NonActionAttribute
- 属性
Non |
指示控制器方法不是操作方法。 |
产品 | 版本 |
---|---|
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 |