Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RouteCollectionExtensions Class

 

Extends a RouteCollection object for MVC routing.

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

System.Object
  System.Web.Mvc.RouteCollectionExtensions

public static class RouteCollectionExtensions

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetVirtualPathForArea(RouteCollection, RequestContext, RouteValueDictionary)

Returns an object that contains information about the route and virtual path that are the result of generating a URL in the current area.

System_CAPS_pubmethodSystem_CAPS_staticGetVirtualPathForArea(RouteCollection, RequestContext, String, RouteValueDictionary)

Returns an object that contains information about the route and virtual path that are the result of generating a URL in the current area.

System_CAPS_pubmethodSystem_CAPS_staticIgnoreRoute(RouteCollection, String)

Ignores the specified URL route for the given list of available routes.

System_CAPS_pubmethodSystem_CAPS_staticIgnoreRoute(RouteCollection, String, Object)

Ignores the specified URL route for the given list of the available routes and a list of constraints.

System_CAPS_pubmethodSystem_CAPS_staticMapRoute(RouteCollection, String, String)

Maps the specified URL route.

System_CAPS_pubmethodSystem_CAPS_staticMapRoute(RouteCollection, String, String, Object)

Maps the specified URL route and sets default route values.

System_CAPS_pubmethodSystem_CAPS_staticMapRoute(RouteCollection, String, String, Object, Object)

Maps the specified URL route and sets default route values and constraints.

System_CAPS_pubmethodSystem_CAPS_staticMapRoute(RouteCollection, String, String, Object, Object, String[])

Maps the specified URL route and sets default route values, constraints, and namespaces.

System_CAPS_pubmethodSystem_CAPS_staticMapRoute(RouteCollection, String, String, Object, String[])

Maps the specified URL route and sets default route values and namespaces.

System_CAPS_pubmethodSystem_CAPS_staticMapRoute(RouteCollection, String, String, String[])

Maps the specified URL route and sets the namespaces.

This class adds ASP.NET MVC functionality to the RouteCollection class, which includes the ability to retrieve virtual path data for a route, ignore a route, and map a new route.

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:
© 2015 Microsoft