RouteFactoryAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示可能包含自定义约束的特性路由。
[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) |
创建直接路由项。 |