NonControllerAttribute Class

Indicates that the type and any derived types that this attribute is applied to is not considered a controller by the default controller discovery mechanism.

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

Syntax

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