Sdílet prostřednictvím


RoutePrefixAttribute Třída

Definice

Označí kontroler předponou trasy, která se vztahuje na všechny akce v rámci kontroleru.

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

Konstruktory

RoutePrefixAttribute()

Inicializuje novou instanci RoutePrefixAttribute třídy.

RoutePrefixAttribute(String)

Inicializuje novou instanci třídy RoutePrefixAttribute se zadanou předponou.

Vlastnosti

Prefix

Získá předponu trasy.

Platí pro