Share via


RoutePatternLiteralPart Class

Definition

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

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

Properties

Content

Gets the text content.

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