AreaAttribute Class

Definition

Specifies the area containing a controller or action.

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class AreaAttribute : Microsoft.AspNetCore.Mvc.Routing.RouteValueAttribute
Inheritance
Attributes

Constructors

AreaAttribute(String)

Initializes a new AreaAttribute instance.

Properties

RouteKey

The route value key.

(Inherited from RouteValueAttribute)
RouteValue

The route value. If null or empty, requires the route value associated with RouteKey to be missing or null.

(Inherited from RouteValueAttribute)

Applies to

Product Versions
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