UrlPatternInit Class

The components of a URL pattern or of a URL (https://urlpattern.spec.whatwg.org/#dictdef-urlpatterninit). A null member is not present.

public sealed class UrlPatternInit

Constructors

NameDescription
UrlPatternInit()

UrlPatternInit()

public UrlPatternInit()

No documentation is available.

Properties

NameDescription
BaseUrlGets the base URL against which the relative components are resolved, or null when it is not present.
HashGets the hash pattern or value, or null when it is not present.
HostnameGets the hostname pattern or value, or null when it is not present.
PasswordGets the password pattern or value, or null when it is not present.
PathnameGets the pathname pattern or value, or null when it is not present.
PortGets the port pattern or value, or null when it is not present.
ProtocolGets the protocol pattern or value, or null when it is not present.
SearchGets the search pattern or value, or null when it is not present.
UsernameGets the username pattern or value, or null when it is not present.

Gets the base URL against which the relative components are resolved, or null when it is not present.

public string? BaseUrl { get; init; }

Gets the hash pattern or value, or null when it is not present.

public string? Hash { get; init; }

Gets the hostname pattern or value, or null when it is not present.

public string? Hostname { get; init; }

Gets the password pattern or value, or null when it is not present.

public string? Password { get; init; }

Gets the pathname pattern or value, or null when it is not present.

public string? Pathname { get; init; }

Gets the port pattern or value, or null when it is not present.

public string? Port { get; init; }

Gets the protocol pattern or value, or null when it is not present.

public string? Protocol { get; init; }

Gets the username pattern or value, or null when it is not present.

public string? Username { get; init; }