RouteTemplate 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.
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 |
RouteTemplate(String, List<TemplateSegment>) |
Constructs a a new RouteTemplate instance given the |
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 |