Artemis Artemis
Artemis Artemis

Search Results for

    Interface IRouteParameterParser

    Represents a contract for parsing route parameters.

    Namespace: Artemis.UI.Shared.Routing.ParameterParsers
    Assembly: Artemis.UI.Shared.dll
    Syntax
    public interface IRouteParameterParser

    Methods

    GetValue(RouteSegment, string)

    Gets the parameter value from the provided source value.

    Declaration
    object GetValue(RouteSegment segment, string source)
    Parameters
    Type Name Description
    RouteSegment segment

    The route segment containing the parameter information.

    string source

    The source value from which to extract the parameter value.

    Returns
    Type Description
    object

    The extracted parameter value.

    IsMatch(RouteSegment, string)

    Checks if the given segment matches the provided source.

    Declaration
    bool IsMatch(RouteSegment segment, string source)
    Parameters
    Type Name Description
    RouteSegment segment

    The route segment to match.

    string source

    The source value to match against the route segment.

    Returns
    Type Description
    bool

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

    Content is available under the PolyForm Noncommercial License, by Artemis RGB.