Share via


RoutePatternParameterPart Class

Definition

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

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

Properties

Default

Gets the default value of this route parameter. May be null.

EncodeSlashes

Gets the value indicating if slashes in current parameter's value should be encoded.

IsCatchAll

Returns true if this part is a catch-all parameter. Otherwise returns false.

IsLiteral

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

(Inherited from RoutePatternPart)
IsOptional

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

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)
Name

Gets the parameter name.

ParameterKind

Gets the RoutePatternParameterKind of this parameter.

ParameterPolicies

Gets the list of parameter policies associated with this parameter.

PartKind

Gets the RoutePatternPartKind of this part.

(Inherited from RoutePatternPart)

Applies to