AreaAttribute Class

Definition

Specifies the area containing a controller or action.

public ref class AreaAttribute : Microsoft::AspNetCore::Mvc::Routing::RouteValueAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class AreaAttribute : Microsoft.AspNetCore.Mvc.Routing.RouteValueAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type AreaAttribute = class
    inherit RouteValueAttribute
Public Class AreaAttribute
Inherits 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