RouteBase Class

Definition

Base class implementation of an IRouter.

C#
public abstract class RouteBase : Microsoft.AspNetCore.Routing.INamedRouter, Microsoft.AspNetCore.Routing.IRouter
Inheritance
RouteBase
Derived
Implements

Constructors

Properties

ConstraintResolver

Gets the resolver used for resolving inline constraints.

Constraints

Gets the set of constraints associated with each route.

DataTokens

Gets the data tokens associated with the route.

Defaults

Gets the default values for each route parameter.

Name

The name of the router. Can be null.

ParsedTemplate

Gets the RouteTemplate associated with the route.

Methods

GetConstraints(IInlineConstraintResolver, RouteTemplate, IDictionary<String,Object>)

Extracts constatins from a given RouteTemplate.

GetDefaults(RouteTemplate, RouteValueDictionary)

Gets the default values for parameters in a templates.

GetVirtualPath(VirtualPathContext)

Returns the URL that is associated with the route details provided in context

OnRouteMatched(RouteContext)

Executes asynchronously whenever routing occurs.

OnVirtualPathGenerated(VirtualPathContext)

Executes whenever a virtual path is derived from a context.

RouteAsync(RouteContext)

Asynchronously routes based on the current context.

ToString()

Returns a string that represents the current object.

Applies to

Produk Versi
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0