AreaAttribute Class¶
Specifies the area containing a controller or action.
- Namespace
Microsoft.AspNetCore.Mvc- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.ObjectSystem.AttributeMicrosoft.AspNetCore.Mvc.Routing.RouteValueAttributeMicrosoft.AspNetCore.Mvc.AreaAttribute
Syntax¶
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class AreaAttribute : RouteValueAttribute, _Attribute, IRouteValueProvider
-
class
Microsoft.AspNetCore.Mvc.AreaAttribute
Constructors¶
-
AreaAttribute(System.String)¶ Initializes a new
Microsoft.AspNetCore.Mvc.AreaAttributeinstance.Arguments: areaName (System.String) – The area containing the controller or action. public AreaAttribute(string areaName)
-