RouteCollectionAttributeRoutingExtensions.MapMvcAttributeRoutes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MapMvcAttributeRoutes(RouteCollection) |
Maps the attribute-defined routes for the application. |
MapMvcAttributeRoutes(RouteCollection, IDirectRouteProvider) |
Maps the attribute-defined routes for the application. |
MapMvcAttributeRoutes(RouteCollection, IInlineConstraintResolver) |
Maps the attribute-defined routes for the application. |
MapMvcAttributeRoutes(RouteCollection, IInlineConstraintResolver, IDirectRouteProvider) |
Maps the attribute-defined routes for the application. |
MapMvcAttributeRoutes(RouteCollection)
Maps the attribute-defined routes for the application.
public static void MapMvcAttributeRoutes (this System.Web.Routing.RouteCollection routes);
static member MapMvcAttributeRoutes : System.Web.Routing.RouteCollection -> unit
<Extension()>
Public Sub MapMvcAttributeRoutes (routes As RouteCollection)
Parameters
- routes
- RouteCollection
A collection of routes.
Applies to
MapMvcAttributeRoutes(RouteCollection, IDirectRouteProvider)
Maps the attribute-defined routes for the application.
public static void MapMvcAttributeRoutes (this System.Web.Routing.RouteCollection routes, System.Web.Mvc.Routing.IDirectRouteProvider directRouteProvider);
static member MapMvcAttributeRoutes : System.Web.Routing.RouteCollection * System.Web.Mvc.Routing.IDirectRouteProvider -> unit
<Extension()>
Public Sub MapMvcAttributeRoutes (routes As RouteCollection, directRouteProvider As IDirectRouteProvider)
Parameters
- routes
- RouteCollection
- directRouteProvider
- IDirectRouteProvider
The IDirectRouteProvider to use for mapping routes.
Applies to
MapMvcAttributeRoutes(RouteCollection, IInlineConstraintResolver)
Maps the attribute-defined routes for the application.
public static void MapMvcAttributeRoutes (this System.Web.Routing.RouteCollection routes, System.Web.Mvc.Routing.IInlineConstraintResolver constraintResolver);
static member MapMvcAttributeRoutes : System.Web.Routing.RouteCollection * System.Web.Mvc.Routing.IInlineConstraintResolver -> unit
<Extension()>
Public Sub MapMvcAttributeRoutes (routes As RouteCollection, constraintResolver As IInlineConstraintResolver)
Parameters
- routes
- RouteCollection
A collection of routes.
- constraintResolver
- IInlineConstraintResolver
The IInlineConstraintResolver to use for resolving inline constraints in route templates.
Applies to
MapMvcAttributeRoutes(RouteCollection, IInlineConstraintResolver, IDirectRouteProvider)
Maps the attribute-defined routes for the application.
public static void MapMvcAttributeRoutes (this System.Web.Routing.RouteCollection routes, System.Web.Mvc.Routing.IInlineConstraintResolver constraintResolver, System.Web.Mvc.Routing.IDirectRouteProvider directRouteProvider);
static member MapMvcAttributeRoutes : System.Web.Routing.RouteCollection * System.Web.Mvc.Routing.IInlineConstraintResolver * System.Web.Mvc.Routing.IDirectRouteProvider -> unit
<Extension()>
Public Sub MapMvcAttributeRoutes (routes As RouteCollection, constraintResolver As IInlineConstraintResolver, directRouteProvider As IDirectRouteProvider)
Parameters
- routes
- RouteCollection
- constraintResolver
- IInlineConstraintResolver
The IInlineConstraintResolver to use for resolving inline constraints in route templates.
- directRouteProvider
- IDirectRouteProvider
The IDirectRouteProvider to use for mapping routes.