UrlPatternResult Class

Represents the result of executing a URL pattern against a URL.

public sealed class UrlPatternResult

Properties

NameDescription
HashGets the hash component result.
HostnameGets the hostname component result.
InputsGets the input URL or URL components that were matched.
PasswordGets the password component result.
PathnameGets the pathname component result.
PortGets the port component result.
ProtocolGets the protocol component result.
SearchGets the search component result.
UsernameGets the username component result.

Gets the hash component result.

public UrlPatternComponentResult Hash { get; }

Gets the hostname component result.

public UrlPatternComponentResult Hostname { get; }

Gets the input URL or URL components that were matched.

public IReadOnlyList<UrlPatternInput> Inputs { get; }

Gets the password component result.

public UrlPatternComponentResult Password { get; }

Gets the pathname component result.

public UrlPatternComponentResult Pathname { get; }

Gets the port component result.

public UrlPatternComponentResult Port { get; }

Gets the protocol component result.

public UrlPatternComponentResult Protocol { get; }

Gets the username component result.

public UrlPatternComponentResult Username { get; }