RouteFactoryAttribute 类

定义

表示可能包含自定义约束的特性路由。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
public abstract class RouteFactoryAttribute : Attribute, System.Web.Mvc.Routing.IDirectRouteFactory
type RouteFactoryAttribute = class
    inherit Attribute
    interface IDirectRouteFactory
Public MustInherit Class RouteFactoryAttribute
Inherits Attribute
Implements IDirectRouteFactory
继承
RouteFactoryAttribute
属性
实现

构造函数

RouteFactoryAttribute(String)

初始化 RouteFactoryAttribute 类的新实例。

属性

Constraints

获取路由约束。

DataTokens

获取路由数据标记。

Defaults

获取路由默认值。

Name

获取或设置路由名称。

Order

获取或设置路由顺序。

Template

获取路由模板。

方法

CreateRoute(DirectRouteFactoryContext)

创建直接路由项。

适用于