다음을 통해 공유


RoutePrefixAttribute 클래스

정의

컨트롤러 내의 모든 작업에 적용되는 경로 접두사를 사용하여 컨트롤러에 주석을 지정합니다.

[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
상속
RoutePrefixAttribute
특성
구현

생성자

RoutePrefixAttribute()

RoutePrefixAttribute 클래스의 새 인스턴스를 초기화합니다.

RoutePrefixAttribute(String)

지정된 접두사를 사용하여 RoutePrefixAttribute 클래스의 새 인스턴스를 초기화합니다.

속성

Prefix

경로 접두사를 가져옵니다.

적용 대상