NonViewComponentAttribute 类

定义

指示默认视图组件发现机制不会将应用此属性的类型和任何派生类型视为视图组件。

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

构造函数

NonViewComponentAttribute()

指示默认视图组件发现机制不会将应用此属性的类型和任何派生类型视为视图组件。

适用于

产品 版本
ASP.NET Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0