Microsoft.AspNetCore.Mvc.Routing Namespace

Classes

AttributeRouteInfo

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

HttpMethodAttribute

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

KnownRouteValueConstraint
RouteValueAttribute

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.

UrlActionContext

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

UrlHelper

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

UrlHelperBase
UrlHelperFactory

A default implementation of IUrlHelperFactory.

UrlRouteContext

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

Interfaces

IActionHttpMethodProvider
IRouteTemplateProvider

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

IRouteValueProvider

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.

IUrlHelperFactory

A factory for creating IUrlHelper instances.