RouteTemplate Class

Definition

Represents the template for a route.

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

Constructors

RouteTemplate(RoutePattern)

Constructs a new RouteTemplate instance given other.

RouteTemplate(String, List<TemplateSegment>)

Constructs a a new RouteTemplate instance given the template string and a list of segments. Computes the parameters in the route template.

Properties

Parameters

Gets the list of TemplatePart that represent that parameters defined in the route template.

Segments

Gets the list of TemplateSegment that compromise the route template.

TemplateText

Gets the string representation of the route template.

Methods

GetParameter(String)

Gets the parameter matching the given name.

GetSegment(Int32)

Gets the TemplateSegment at a given index.

ToRoutePattern()

Converts the RouteTemplate to the equivalent RoutePattern

Applies to