Share via


RouteFactoryAttribute Class

Definition

Represents an attribute route that may contain custom constraints.

[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
Inheritance
RouteFactoryAttribute
Attributes
Implements

Constructors

RouteFactoryAttribute(String)

Initializes a new instance of the RouteFactoryAttribute class.

Properties

Constraints

Gets the route constraints.

DataTokens

Gets the route data tokens.

Defaults

Gets the route defaults.

Name

Gets or sets the route name.

Order

Gets or sets the route order.

Template

Gets the route template.

Methods

CreateRoute(DirectRouteFactoryContext)

Creates a direct route entry.

Applies to