Share via


RouteFactoryAttribute Class

 

Represents an attribute route that may contain custom constraints.

Namespace:   System.Web.Mvc.Routing
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  System.Attribute
    System.Web.Mvc.Routing.RouteFactoryAttribute

Syntax

[AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Method, 
    Inherited = false, AllowMultiple = true)]
public abstract class RouteFactoryAttribute : Attribute, IDirectRouteFactory
[AttributeUsageAttribute(AttributeTargets::Class | AttributeTargets::Method, 
    Inherited = false, AllowMultiple = true)]
public ref class RouteFactoryAttribute abstract : Attribute, 
    IDirectRouteFactory
[<AbstractClass>]
[<AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Method,
    Inherited = false, AllowMultiple = true)>]
type RouteFactoryAttribute = 
    class
        inherit Attribute
        interface IDirectRouteFactory
    end
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method,
    Inherited := False, AllowMultiple := True)>
Public MustInherit Class RouteFactoryAttribute
    Inherits Attribute
    Implements IDirectRouteFactory

Constructors

Name Description
System_CAPS_protmethod RouteFactoryAttribute(String)

Initializes a new instance of the RouteFactoryAttribute class.

Properties

Name Description
System_CAPS_pubproperty Constraints

Gets the route constraints.

System_CAPS_pubproperty DataTokens

Gets the route data tokens.

System_CAPS_pubproperty Defaults

Gets the route defaults.

System_CAPS_pubproperty Name

Gets or sets the route name.

System_CAPS_pubproperty Order

Gets or sets the route order.

System_CAPS_pubproperty Template

Gets the route template.

System_CAPS_pubproperty TypeId

(Inherited from Attribute.)

Methods

Name Description
System_CAPS_pubmethod CreateRoute(DirectRouteFactoryContext)

Creates a direct route entry.

System_CAPS_pubmethod Equals(Object)

(Inherited from Attribute.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethod Match(Object)

(Inherited from Attribute.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfoCount(UInt32)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

(Inherited from Attribute.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Mvc.Routing Namespace

Return to top