AreaAttribute Class¶
Specifies the area containing a controller or action.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.Object
System.Attribute
Microsoft.AspNetCore.Mvc.Routing.RouteValueAttribute
Microsoft.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.AreaAttribute
instance.Arguments: areaName (System.String) – The area containing the controller or action. public AreaAttribute(string areaName)
-