다음을 통해 공유


RouteAttribute 클래스

정의

경로를 통해 직접 제공하도록 컨트롤러 또는 작업에 배치합니다. 컨트롤러에 배치한 경우 작업 중에서 System.Web.Mvc.RouteAttribute가 없는 작업에 적용됩니다.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
public sealed class RouteAttribute : Attribute, System.Web.Mvc.Routing.IDirectRouteFactory, System.Web.Mvc.Routing.IRouteInfoProvider
type RouteAttribute = class
    inherit Attribute
    interface IDirectRouteFactory
    interface IRouteInfoProvider
Public NotInheritable Class RouteAttribute
Inherits Attribute
Implements IDirectRouteFactory, IRouteInfoProvider
상속
RouteAttribute
특성
구현

생성자

RouteAttribute()

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

RouteAttribute(String)

지정된 템플릿을 사용하여 클래스의 RouteAttribute 새 instance 초기화합니다.

속성

Name

경로의 이름을 가져오거나 설정합니다.

Order

경로가 적용된 순서를 가져옵니다.

Template

일치시킬 경로의 패턴을 가져옵니다.

명시적 인터페이스 구현

IDirectRouteFactory.CreateRoute(DirectRouteFactoryContext)

직접 경로 항목을 만듭니다.

적용 대상