Dela via


Microsoft.AspNetCore.Routing.Patterns Namespace

Contains types used to define routes using RoutePattern. Instances of RoutePattern are immutable and are created using RoutePatternFactory.

Classes

RoutePattern

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

RoutePatternException

An exception that is thrown for error constructing a RoutePattern.

RoutePatternFactory

Contains factory methods for creating RoutePattern and related types. Use Parse(String) to parse a route pattern in string format.

RoutePatternLiteralPart

Represents a literal text part of a route pattern. Instances of RoutePatternLiteralPart are immutable.

RoutePatternParameterPart

Represents a parameter part in a route pattern. Instances of RoutePatternParameterPart are immutable.

RoutePatternParameterPolicyReference

The parsed representation of a policy in a RoutePattern parameter. Instances of RoutePatternParameterPolicyReference are immutable.

RoutePatternPart

Represents a part of a route pattern.

RoutePatternPathSegment

Represents a path segment in a route pattern. Instances of RoutePatternPathSegment are immutable.

RoutePatternSeparatorPart

Represents an optional separator part of a route pattern. Instances of RoutePatternSeparatorPart are immutable.

RoutePatternTransformer

A singleton service that provides transformations on RoutePattern.

Enums

RoutePatternParameterKind

Defines the kinds of RoutePatternParameterPart instances.

RoutePatternPartKind

Defines the kinds of RoutePatternPart instances.

Remarks

For more information about routing, see Routing in ASP.NET Core.