UrlPatternResult Class

The result of UrlPattern.Exec (https://urlpattern.spec.whatwg.org/#dictdef-urlpatternresult).

public sealed class UrlPatternResult

Constructors

NameDescription
UrlPatternResult()

UrlPatternResult()

  • 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 UrlPatternResult()

No documentation is available.

Properties

NameDescription
HashGets the match of the hash component.
HostnameGets the match of the hostname component.
InputsThe inputs of the match: the URL or UrlPatternInit, followed by the base URL if any.
PasswordGets the match of the password component.
PathnameGets the match of the pathname component.
PortGets the match of the port component.
ProtocolGets the match of the protocol component.
SearchGets the match of the search component.
UsernameGets the match of the username component.

Gets the match of the hash component.

public required UrlPatternComponentResult Hash { get; init; }

Gets the match of the hostname component.

public required UrlPatternComponentResult Hostname { get; init; }

The inputs of the match: the URL or UrlPatternInit, followed by the base URL if any.

public required IReadOnlyList<UrlPatternInput> Inputs { get; init; }

Gets the match of the password component.

public required UrlPatternComponentResult Password { get; init; }

Gets the match of the pathname component.

public required UrlPatternComponentResult Pathname { get; init; }

Gets the match of the port component.

public required UrlPatternComponentResult Port { get; init; }

Gets the match of the protocol component.

public required UrlPatternComponentResult Protocol { get; init; }

Gets the match of the username component.

public required UrlPatternComponentResult Username { get; init; }