AreaAttribute Třída

Definice

Určuje oblast obsahující kontroler nebo akci.

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
Dědičnost
Atributy

Konstruktory

AreaAttribute(String)

Inicializuje novou AreaAttribute instanci.

Vlastnosti

RouteKey

Klíč hodnoty trasy.

(Zděděno od RouteValueAttribute)
RouteValue

Hodnota trasy. Pokud je hodnota null nebo prázdná, vyžaduje, aby hodnota trasy přidružená k chybě nebo hodnota RouteKey null.

(Zděděno od RouteValueAttribute)

Platí pro