RouteBase Class

Namespace
Microsoft.AspNetCore.Routing
Assemblies
  • Microsoft.AspNetCore.Routing

Syntax

public abstract class RouteBase : INamedRouter, IRouter
class Microsoft.AspNetCore.Routing.RouteBase

Constructors

RouteBase(System.String, System.String, Microsoft.AspNetCore.Routing.IInlineConstraintResolver, Microsoft.AspNetCore.Routing.RouteValueDictionary, System.Collections.Generic.IDictionary<System.String, System.Object>, Microsoft.AspNetCore.Routing.RouteValueDictionary)
public RouteBase(string template, string name, IInlineConstraintResolver constraintResolver, RouteValueDictionary defaults, IDictionary<string, object> constraints, RouteValueDictionary dataTokens)

Properties

Microsoft.AspNetCore.Routing.RouteBase.ConstraintResolver
Return type:Microsoft.AspNetCore.Routing.IInlineConstraintResolver
protected virtual IInlineConstraintResolver ConstraintResolver { get; set; }
Microsoft.AspNetCore.Routing.RouteBase.Constraints
Return type:System.Collections.Generic.IDictionary<System.String>
public virtual IDictionary<string, IRouteConstraint> Constraints { get; protected set; }
Microsoft.AspNetCore.Routing.RouteBase.DataTokens
Return type:Microsoft.AspNetCore.Routing.RouteValueDictionary
public virtual RouteValueDictionary DataTokens { get; protected set; }
Microsoft.AspNetCore.Routing.RouteBase.Defaults
Return type:Microsoft.AspNetCore.Routing.RouteValueDictionary
public virtual RouteValueDictionary Defaults { get; protected set; }
Microsoft.AspNetCore.Routing.RouteBase.Name
Return type:System.String
public virtual string Name { get; protected set; }
Microsoft.AspNetCore.Routing.RouteBase.ParsedTemplate
Return type:Microsoft.AspNetCore.Routing.Template.RouteTemplate
public virtual RouteTemplate ParsedTemplate { get; protected set; }

Methods

GetConstraints(Microsoft.AspNetCore.Routing.IInlineConstraintResolver, Microsoft.AspNetCore.Routing.Template.RouteTemplate, System.Collections.Generic.IDictionary<System.String, System.Object>)
Return type:System.Collections.Generic.IDictionary<System.String>
protected static IDictionary<string, IRouteConstraint> GetConstraints(IInlineConstraintResolver inlineConstraintResolver, RouteTemplate parsedTemplate, IDictionary<string, object> constraints)
GetDefaults(Microsoft.AspNetCore.Routing.Template.RouteTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary)
Return type:Microsoft.AspNetCore.Routing.RouteValueDictionary
protected static RouteValueDictionary GetDefaults(RouteTemplate parsedTemplate, RouteValueDictionary defaults)
GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext)
Return type:Microsoft.AspNetCore.Routing.VirtualPathData
public virtual VirtualPathData GetVirtualPath(VirtualPathContext context)
OnRouteMatched(Microsoft.AspNetCore.Routing.RouteContext)
Return type:System.Threading.Tasks.Task
protected abstract Task OnRouteMatched(RouteContext context)
OnVirtualPathGenerated(Microsoft.AspNetCore.Routing.VirtualPathContext)
Return type:Microsoft.AspNetCore.Routing.VirtualPathData
protected abstract VirtualPathData OnVirtualPathGenerated(VirtualPathContext context)
RouteAsync(Microsoft.AspNetCore.Routing.RouteContext)
Return type:System.Threading.Tasks.Task
public virtual Task RouteAsync(RouteContext context)
ToString()
Return type:System.String
public override string ToString()