RouteAreaAttribute Klasa

Definicja

Definiuje obszar, który ma być ustawiony dla wszystkich tras zdefiniowanych w tym kontrolerze.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class RouteAreaAttribute : Attribute
type RouteAreaAttribute = class
    inherit Attribute
Public NotInheritable Class RouteAreaAttribute
Inherits Attribute
Dziedziczenie
RouteAreaAttribute
Atrybuty

Konstruktory

RouteAreaAttribute()

Inicjuje nowe wystąpienie klasy RouteAreaAttribute.

RouteAreaAttribute(String)

Inicjuje nowe wystąpienie klasy RouteAreaAttribute.

Właściwości

AreaName

Pobiera nazwę obszaru do ustawienia dla wszystkich tras zdefiniowanych w kontrolerze. Jeśli wartość ma wartość null, zostanie podjęta próba wywnioskowania nazwy obszaru z przestrzeni nazw kontrolera docelowego.

AreaPrefix

Pobiera prefiks adresu URL, który ma być stosowany do tras tego obszaru. Domyślnie określa nazwę obszaru.

Dotyczy