Dela via


RouteBase Class

Definition

Base class implementation of an IRouter.

public ref class RouteBase abstract : Microsoft::AspNetCore::Routing::INamedRouter, Microsoft::AspNetCore::Routing::IRouter
public abstract class RouteBase : Microsoft.AspNetCore.Routing.INamedRouter, Microsoft.AspNetCore.Routing.IRouter
type RouteBase = class
    interface IRouter
    interface INamedRouter
type RouteBase = class
    interface INamedRouter
    interface IRouter
Public MustInherit Class RouteBase
Implements INamedRouter, IRouter
Inheritance
RouteBase
Derived
Implements

Constructors

RouteBase(String, String, IInlineConstraintResolver, RouteValueDictionary, IDictionary<String,Object>, RouteValueDictionary)

Creates a new RouteBase instance.

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