Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RouteAttribute Class

 

Place on a controller or action to expose it directly via a route. When placed on a controller, it applies to actions that do not have any System.Web.Mvc.RouteAttribute’s on them.

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

System.Object
  System.Attribute
    System.Web.Mvc.RouteAttribute

[AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Method, 
	Inherited = false, AllowMultiple = true)]
public sealed class RouteAttribute : Attribute, IDirectRouteFactory, 
	IRouteInfoProvider

NameDescription
System_CAPS_pubmethodRouteAttribute()

Initializes a new instance of the RouteAttribute class.

System_CAPS_pubmethodRouteAttribute(String)

Initializes a new instance of the RouteAttribute class with the specified template.

NameDescription
System_CAPS_pubpropertyName

Gets or sets the name of the route.

System_CAPS_pubpropertyOrder

Gets the order the route is applied.

System_CAPS_pubpropertyTemplate

Gets the pattern for the route to match.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show:
© 2016 Microsoft