RoutePatternSeparatorPart Class

Definition

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

public ref class RoutePatternSeparatorPart sealed : Microsoft::AspNetCore::Routing::Patterns::RoutePatternPart
public sealed class RoutePatternSeparatorPart : Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart
type RoutePatternSeparatorPart = class
    inherit RoutePatternPart
Public NotInheritable Class RoutePatternSeparatorPart
Inherits RoutePatternPart
Inheritance
RoutePatternSeparatorPart

Remarks

An optional separator is a literal text delimiter that appears between two parameter parts in the last segment of a route pattern. The only separator that is recognized is ..

An optional separator character does not need to present in the URL path of a request for the route pattern to match.

Properties

Content

Gets the text content of the part.

IsLiteral

Returns true if this part is literal text. Otherwise returns false.

(Inherited from RoutePatternPart)
IsParameter

Returns true if this part is a route parameter. Otherwise returns false.

(Inherited from RoutePatternPart)
IsSeparator

Returns true if this part is an optional separator. Otherwise returns false.

(Inherited from RoutePatternPart)
PartKind

Gets the RoutePatternPartKind of this part.

(Inherited from RoutePatternPart)

Applies to