Dela via


TemplateMatcher Class

Definition

Supports matching paths to route templates and extracting parameter values.

public ref class TemplateMatcher
public class TemplateMatcher
type TemplateMatcher = class
Public Class TemplateMatcher
Inheritance
TemplateMatcher

Constructors

TemplateMatcher(RouteTemplate, RouteValueDictionary)

Creates a new TemplateMatcher instance given a template and defaults.

Properties

Defaults

Gets the default values for parameters in the Template.

Template

Gets the RouteTemplate to match against.

Methods

TryMatch(PathString, RouteValueDictionary)

Evaluates if the provided path matches the Template. Populates values with parameter values.

Applies to