RouteCollectionAttributeRoutingExtensions.MapMvcAttributeRoutes Method

 

Maps the attribute-defined routes for the application.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticMapMvcAttributeRoutes(RouteCollection)

Maps the attribute-defined routes for the application.

System_CAPS_pubmethodSystem_CAPS_staticMapMvcAttributeRoutes(RouteCollection, IDirectRouteProvider)

Maps the attribute-defined routes for the application.

System_CAPS_pubmethodSystem_CAPS_staticMapMvcAttributeRoutes(RouteCollection, IInlineConstraintResolver)

Maps the attribute-defined routes for the application.

System_CAPS_pubmethodSystem_CAPS_staticMapMvcAttributeRoutes(RouteCollection, IInlineConstraintResolver, IDirectRouteProvider)

Maps the attribute-defined routes for the application.

Return to top

RouteCollectionAttributeRoutingExtensions.MapMvcAttributeRoutes Method (RouteCollection)

Maps the attribute-defined routes for the application.

public static void MapMvcAttributeRoutes(
	this RouteCollection routes
)

Parameters

routes
Type: System.Web.Routing.RouteCollection

A collection of routes.

Return to top

RouteCollectionAttributeRoutingExtensions.MapMvcAttributeRoutes Method (RouteCollection, IDirectRouteProvider)

Maps the attribute-defined routes for the application.

public static void MapMvcAttributeRoutes(
	this RouteCollection routes,
	IDirectRouteProvider directRouteProvider
)

Parameters

routes
Type: System.Web.Routing.RouteCollection

directRouteProvider
Type: System.Web.Mvc.Routing.IDirectRouteProvider

The IDirectRouteProvider to use for mapping routes.

Return to top

RouteCollectionAttributeRoutingExtensions.MapMvcAttributeRoutes Method (RouteCollection, IInlineConstraintResolver)

Maps the attribute-defined routes for the application.

public static void MapMvcAttributeRoutes(
	this RouteCollection routes,
	IInlineConstraintResolver constraintResolver
)

Parameters

routes
Type: System.Web.Routing.RouteCollection

A collection of routes.

constraintResolver
Type: System.Web.Mvc.Routing.IInlineConstraintResolver

The IInlineConstraintResolver to use for resolving inline constraints in route templates.

Return to top

RouteCollectionAttributeRoutingExtensions.MapMvcAttributeRoutes Method (RouteCollection, IInlineConstraintResolver, IDirectRouteProvider)

Maps the attribute-defined routes for the application.

public static void MapMvcAttributeRoutes(
	this RouteCollection routes,
	IInlineConstraintResolver constraintResolver,
	IDirectRouteProvider directRouteProvider
)

Parameters

routes
Type: System.Web.Routing.RouteCollection

constraintResolver
Type: System.Web.Mvc.Routing.IInlineConstraintResolver

The IInlineConstraintResolver to use for resolving inline constraints in route templates.

directRouteProvider
Type: System.Web.Mvc.Routing.IDirectRouteProvider

The IDirectRouteProvider to use for mapping routes.

Return to top
Show: