Artemis Artemis
Artemis Artemis

Search Results for

    Class RouteSegment

    Represents a segment of a route.

    Inheritance
    object
    RouteSegment
    Namespace: Artemis.UI.Shared.Routing
    Assembly: Artemis.UI.Shared.dll
    Syntax
    public class RouteSegment

    Constructors

    RouteSegment(string)

    Initializes a new instance of the RouteSegment class.

    Declaration
    public RouteSegment(string segment)
    Parameters
    Type Name Description
    string segment

    The segment value.

    Properties

    Parameter

    Gets the parameter name if the segment is a parameterized segment; otherwise null.

    Declaration
    public string? Parameter { get; }
    Property Value
    Type Description
    string

    ParameterType

    Gets the type of the parameter if the segment is a parameterized segment; otherwise null.

    Declaration
    public string? ParameterType { get; }
    Property Value
    Type Description
    string

    Segment

    Gets the segment value.

    Declaration
    public string Segment { get; }
    Property Value
    Type Description
    string

    Methods

    GetParameter(string)

    Gets the parameter value from the provided value.

    Declaration
    public object? GetParameter(string value)
    Parameters
    Type Name Description
    string value

    The value from which to extract the parameter value.

    Returns
    Type Description
    object

    The extracted parameter value.

    IsMatch(string)

    Checks if the segment matches the provided value.

    Declaration
    public bool IsMatch(string value)
    Parameters
    Type Name Description
    string value

    The value to compare with the segment.

    Returns
    Type Description
    bool

    true if the segment matches the value; otherwise, false.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.