RouteBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
OnRouteMatched(RouteContext) |
Executes asynchronously whenever routing occurs. |
OnVirtualPathGenerated(VirtualPathContext) |
Executes whenever a virtual path is derived from a |
RouteAsync(RouteContext) |
Asynchronously routes based on the current |
ToString() | Returns a string that represents the current object. |