UrlPatternComponentResult Class

The match of a component (https://urlpattern.spec.whatwg.org/#dictdef-urlpatterncomponentresult).

public sealed class UrlPatternComponentResult

Constructors

NameDescription
UrlPatternComponentResult()

UrlPatternComponentResult()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public UrlPatternComponentResult()

No documentation is available.

Properties

NameDescription
GroupsThe values of the groups by name (the unnamed groups are named "0", "1", ...). The value of an optional group that did not match is null.
InputThe value of the component that was matched.

The values of the groups by name (the unnamed groups are named "0", "1", ...). The value of an optional group that did not match is null.

public required IReadOnlyDictionary<string, string?> Groups { get; init; }

The value of the component that was matched.

public required string Input { get; init; }