Share via


RoutePattern Class

Definition

Represents a parsed route template with default values and constraints. Use RoutePatternFactory to create RoutePattern instances. Instances of RoutePattern are immutable.

public ref class RoutePattern sealed
public sealed class RoutePattern
type RoutePattern = class
Public NotInheritable Class RoutePattern
Inheritance
RoutePattern

Fields

RequiredValueAny

A marker object that can be used in RequiredValues to designate that any non-null or non-empty value is required.

Properties

Defaults

Gets the set of default values for the route pattern. The keys of Defaults are the route parameter names.

InboundPrecedence

Gets the precedence value of the route pattern for URL matching.

OutboundPrecedence

Gets the precedence value of the route pattern for URL generation.

ParameterPolicies

Gets the set of parameter policy references for the route pattern. The keys of ParameterPolicies are the route parameter names.

Parameters

Gets the list of route parameters.

PathSegments

Gets the list of path segments.

RawText

Gets the raw text supplied when parsing the route pattern. May be null.

RequiredValues

Gets a collection of route values that must be provided for this route pattern to be considered applicable.

Methods

GetParameter(String)

Gets the parameter matching the given name.

Applies to