Share via


RouteTemplate Constructors

Definition

Overloads

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.

RouteTemplate(RoutePattern)

Source:
RouteTemplate.cs
Source:
RouteTemplate.cs

Constructs a new RouteTemplate instance given other.

public:
 RouteTemplate(Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ other);
public RouteTemplate (Microsoft.AspNetCore.Routing.Patterns.RoutePattern other);
new Microsoft.AspNetCore.Routing.Template.RouteTemplate : Microsoft.AspNetCore.Routing.Patterns.RoutePattern -> Microsoft.AspNetCore.Routing.Template.RouteTemplate
Public Sub New (other As RoutePattern)

Parameters

other
RoutePattern

A RoutePattern instance.

Applies to

RouteTemplate(String, List<TemplateSegment>)

Source:
RouteTemplate.cs
Source:
RouteTemplate.cs
Source:
RouteTemplate.cs

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

public:
 RouteTemplate(System::String ^ template, System::Collections::Generic::List<Microsoft::AspNetCore::Routing::Template::TemplateSegment ^> ^ segments);
public RouteTemplate (string template, System.Collections.Generic.List<Microsoft.AspNetCore.Routing.Template.TemplateSegment> segments);
new Microsoft.AspNetCore.Routing.Template.RouteTemplate : string * System.Collections.Generic.List<Microsoft.AspNetCore.Routing.Template.TemplateSegment> -> Microsoft.AspNetCore.Routing.Template.RouteTemplate
Public Sub New (template As String, segments As List(Of TemplateSegment))

Parameters

template
String

A string representation of the route template.

segments
List<TemplateSegment>

A list of TemplateSegment.

Applies to