Microsoft.AspNetCore.Routing Namespace

Classes

CompositeEndpointDataSource

Represents an EndpointDataSource whose values come from a collection of EndpointDataSource instances.

ControllerLinkGeneratorExtensions

Extension methods for using LinkGenerator to generate links to MVC controllers.

DataTokensMetadata

Metadata that defines data tokens for an Endpoint. This metadata type provides data tokens value for DataTokens associated with an endpoint.

DefaultEndpointDataSource

Provides a collection of Endpoint instances.

DefaultInlineConstraintResolver

The default implementation of IInlineConstraintResolver. Resolves constraints by parsing a constraint key and constraint arguments, using a map to resolve the constraint type, and calling an appropriate constructor for the constraint type.

EndpointDataSource

Provides a collection of Endpoint instances.

EndpointNameMetadata

Specifies an endpoint name in Metadata.

EndpointSelectorContext
HttpMethodMetadata

Represents HTTP method metadata used during routing.

InlineRouteParameterParser
LinkGenerator

Defines a contract to generate absolute and related URIs based on endpoint routing.

LinkGeneratorEndpointNameAddressExtensions

Extension methods for using LinkGenerator with and endpoint name.

LinkGeneratorRouteValuesAddressExtensions

Extension methods for using LinkGenerator with RouteValuesAddress.

LinkOptions
MatcherPolicy

Defines a policy that applies behaviors to the URL matcher. Implementations of MatcherPolicy and related interfaces must be registered in the dependency injection container as singleton services of type MatcherPolicy.

PageLinkGeneratorExtensions

Extension methods for using LinkGenerator to generate links to Razor Pages.

ParameterPolicyFactory

Defines an abstraction for resolving inline parameter policies as instances of IParameterPolicy.

RequestDelegateRouteBuilderExtensions
Route
RouteBase
RouteBuilder
RouteCollection
RouteConstraintBuilder

A builder for produding a mapping of keys to see IRouteConstraint.

RouteConstraintMatcher
RouteContext

A context object for RouteAsync(RouteContext).

RouteCreationException

The exception that is thrown for invalid routes or constraints.

RouteData

Information about the current routing path.

RouteEndpoint

Represents an Endpoint that can be used in URL matching or URL generation.

RouteHandler
RouteOptions
RouteValueDictionary

An IDictionary<TKey,TValue> type for route values.

RouteValueEqualityComparer

An IEqualityComparer<T> implementation that compares objects as-if they were route value strings.

RouteValuesAddress

An address of route name and values.

RouteValuesAddressMetadata

Metadata used during link generation to find the associated endpoint using route values.

RoutingFeature
RoutingHttpContextExtensions

Extension methods for HttpContext related to routing.

SuppressLinkGenerationMetadata

Represents metadata used during link generation. If SuppressLinkGeneration is true the associated endpoint will not be used for link generation.

SuppressMatchingMetadata

Metadata used to prevent URL matching. If SuppressMatching is true the associated endpoint will not be considered for URL matching.

VirtualPathContext

A context for virtual path generation operations.

VirtualPathData

Represents information about the route and virtual path that are the result of generating a URL with the ASP.NET routing middleware.

Structs

RouteData.RouteDataSnapshot

A snapshot of the state of a RouteData instance.

RouteValueDictionary.Enumerator

Interfaces

IDataTokensMetadata

Metadata that defines data tokens for an Endpoint. This metadata type provides data tokens value for DataTokens associated with an endpoint.

IEndpointAddressScheme<TAddress>

Defines a contract to find endpoints based on the provided address.

IEndpointNameMetadata

Defines a contract use to specify an endpoint name in Metadata.

IHttpMethodMetadata

Represents HTTP method metadata used during routing.

IInlineConstraintResolver

Defines an abstraction for resolving inline constraints as instances of IRouteConstraint.

INamedRouter
IOutboundParameterTransformer

Defines the contract that a class must implement to transform route values while building a URI.

IParameterPolicy

A marker interface for types that are associated with route parameters.

IRouteBuilder

Defines a contract for a route builder in an application. A route builder specifies the routes for an application.

IRouteCollection
IRouteConstraint

Defines the contract that a class must implement in order to check whether a URL parameter value is valid for a constraint.

IRouteHandler

Defines a contract for a handler of a route.

IRouter
IRouteValuesAddressMetadata

Represents metadata used during link generation to find the associated endpoint using route values.

IRoutingFeature

A feature interface for routing functionality.

ISuppressLinkGenerationMetadata

Represents metadata used during link generation. If SuppressLinkGeneration is true the associated endpoint will not be used for link generation.

ISuppressMatchingMetadata

Metadata used to prevent URL matching. If SuppressMatching is true the associated endpoint will not be considered for URL matching.

Enums

RouteDirection

Indicates whether ASP.NET routing is processing a URL from an HTTP request or generating a URL.