Microsoft.AspNetCore.Mvc.Routing Namespace¶
-
namespace
Microsoft.AspNetCore.Mvc.
Routing
¶ Interfaces
- interface
IActionHttpMethodProvider
- interface
IRouteTemplateProvider
- Interface for attributes which can supply a route template for attribute routing.
- interface
IRouteValueProvider
- <p>
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
Microsoft.AspNetCore.Routing.RouteData.Values
when the action is selected. </p> <p> When anMicrosoft.AspNetCore.Mvc.Routing.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 <code>null</code>. See remarks for more details. </p> - interface
IUrlHelperFactory
- A factory for creating
Microsoft.AspNetCore.Mvc.IUrlHelper
instances.
Classes
- class
AttributeRouteInfo
- Represents the routing information for an action that is attribute routed.
- class
HttpMethodAttribute
- Identifies an action that only supports a given set of HTTP methods.
- class
KnownRouteValueConstraint
- class
RouteValueAttribute
- <p>
An attribute which specifies a required route value for an action or controller.
</p>
<p>
When placed on an action, the route data of a request must match the expectations of the route
constraint in order for the action to be selected. See
Microsoft.AspNetCore.Mvc.Routing.IRouteValueProvider
for the expectations that must be satisfied by the route data. </p> <p> When placed on a controller, unless overridden by the action, the constraint applies to all actions defined by the controller. </p> - class
UrlActionContext
- Context object to be used for the URLs that
Microsoft.AspNetCore.Mvc.IUrlHelper.Action(Microsoft.AspNetCore.Mvc.Routing.UrlActionContext)
generates. - class
UrlHelper
- An implementation of
Microsoft.AspNetCore.Mvc.IUrlHelper
that contains methods to build URLs for ASP.NET MVC within an application. - class
UrlHelperFactory
- A default implementation of
Microsoft.AspNetCore.Mvc.Routing.IUrlHelperFactory
. - class
UrlRouteContext
- Context object to be used for the URLs that
Microsoft.AspNetCore.Mvc.IUrlHelper.RouteUrl(Microsoft.AspNetCore.Mvc.Routing.UrlRouteContext)
generates.
- interface