Language

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
属性
実装

コンストラクター

Name 説明
RoutePrefixAttribute()

RoutePrefixAttribute クラスの新しいインスタンスを初期化します。

RoutePrefixAttribute(String)

指定されたプレフィックスで RoutePrefixAttribute クラスの新しいインスタンスを初期化します。

プロパティ

Name 説明
Prefix

ルート プレフィックスを取得します。

適用対象