Język

RoutePrefixAttribute Klasa

Definicja

Dodawać adnotacje do kontrolera z prefiksem trasy, który ma zastosowanie do wszystkich akcji w kontrolerze.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public class RoutePrefixAttribute : Attribute, System.Web.Mvc.Routing.IRoutePrefix
type RoutePrefixAttribute = class
    inherit Attribute
    interface IRoutePrefix
Public Class RoutePrefixAttribute
Inherits Attribute
Implements IRoutePrefix
Dziedziczenie
RoutePrefixAttribute
Atrybuty
Implementuje

Konstruktory

Nazwisko Opis
RoutePrefixAttribute()

Inicjuje nowe wystąpienie klasy RoutePrefixAttribute.

RoutePrefixAttribute(String)

Inicjuje nowe wystąpienie klasy RoutePrefixAttribute z określonym prefiksem.

Właściwości

Nazwisko Opis
Prefix

Pobiera prefiks trasy.

Dotyczy