Microsoft.AspNetCore.Mvc.Routing Namespace

Provides types used for routing and link generation in MVC.



Represents the routing information for an action that is attribute routed.


Provides an abstraction for dynamically manipulating route value to select a controller action or page.


Identifies an action that supports a given set of HTTP methods.


A IRouteConstraint that represents a known route value.


An attribute which specifies a required route value for an action or controller.

When placed on an action, the route data of a request must match the expectations of the required route data in order for the action to be selected. All other actions without a route value for the given key cannot be selected unless the route data of the request does omits a value matching the key. See IRouteValueProvider for more details and examples.

When placed on a controller, unless overridden by the action, the constraint applies to all actions defined by the controller.


Context object to be used for the URLs that Action(UrlActionContext) generates.


An implementation of IUrlHelper that contains methods to build URLs for ASP.NET MVC within an application.


An abstraction for IUrlHelper.


A default implementation of IUrlHelperFactory.


Context object to be used for the URLs that RouteUrl(UrlRouteContext) generates.



Interface that exposes a list of http methods that are supported by an provider.


Interface for attributes which can supply a route template for attribute routing.


A metadata interface which specifies a route value which is required for the action selector to choose an action. When applied to an action using attribute routing, the route value will be added to the Values when the action is selected.

When an IRouteValueProvider is used to provide a new route value to an action, all actions in the application must also have a value associated with that key, or have an implicit value of null. See remarks for more details.


A factory for creating IUrlHelper instances.


For more information about routing, see Routing in ASP.NET Core.