ControllerAttribute Class¶
Indicates that the type and any derived types that this attribute is applied to
are considered a controller by the default controller discovery mechanism, unless
Microsoft.AspNetCore.Mvc.NonControllerAttribute
is applied to any type in the hierarchy.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.Object
System.Attribute
Microsoft.AspNetCore.Mvc.ControllerAttribute