AreaAttribute Classe

Définition

Spécifie la zone contenant un contrôleur ou une 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
Héritage
Attributs

Constructeurs

AreaAttribute(String)

Initialise une nouvelle instance de AreaAttribute.

Propriétés

RouteKey

Clé de valeur de routage.

(Hérité de RouteValueAttribute)
RouteValue

Valeur de la route. Si null ou vide, nécessite que la valeur de route associée RouteKey à soit manquante ou null.

(Hérité de RouteValueAttribute)

S’applique à