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 新しいインスタンスを初期化します。

プロパティ

Name

ルートの名前を取得または設定します。

Order

ルートの適用順序を取得します。

Template

照合対象のルート パターンを取得します。

明示的なインターフェイスの実装

IDirectRouteFactory.CreateRoute(DirectRouteFactoryContext)

ダイレクト ルートのエントリを作成します。

適用対象