Export (0) Print
Expand All

RouteCollectionExtensions Class

Extends a RouteCollection object for MVC routing.

System::Object
  System.Web.Mvc::RouteCollectionExtensions

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

[ExtensionAttribute]
public ref class RouteCollectionExtensions abstract sealed

  NameDescription
Public methodStatic memberGetVirtualPathForArea(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.
Public methodStatic memberGetVirtualPathForArea(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.
Public methodStatic memberIgnoreRoute(RouteCollection, String)Ignores the specified URL route for the given list of available routes.
Public methodStatic memberIgnoreRoute(RouteCollection, String, Object)Ignores the specified URL route for the given list of the available routes and a list of constraints.
Public methodStatic memberMapRoute(RouteCollection, String, String)Maps the specified URL route.
Public methodStatic memberMapRoute(RouteCollection, String, String, Object)Maps the specified URL route and sets default route values.
Public methodStatic memberMapRoute(RouteCollection, String, String, array<String>)Maps the specified URL route and sets the namespaces.
Public methodStatic memberMapRoute(RouteCollection, String, String, Object, Object)Maps the specified URL route and sets default route values and constraints.
Public methodStatic memberMapRoute(RouteCollection, String, String, Object, array<String>)Maps the specified URL route and sets default route values and namespaces.
Public methodStatic memberMapRoute(RouteCollection, String, String, Object, Object, array<String>)Maps the specified URL route and sets default route values, constraints, and namespaces.
Top

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.
Show:
© 2014 Microsoft