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 UrlPatternInitConstructors
| Name | Description |
|---|---|
| UrlPatternInit() |
UrlPatternInit()
public UrlPatternInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| BaseUrl | Gets the base URL against which the relative components are resolved, or null when it is not present. |
| Hash | Gets the hash pattern or value, or null when it is not present. |
| Hostname | Gets the hostname pattern or value, or null when it is not present. |
| Password | Gets the password pattern or value, or null when it is not present. |
| Pathname | Gets the pathname pattern or value, or null when it is not present. |
| Port | Gets the port pattern or value, or null when it is not present. |
| Protocol | Gets the protocol pattern or value, or null when it is not present. |
| Search | Gets the search pattern or value, or null when it is not present. |
| Username | Gets the username pattern or value, or null when it is not present. |
BaseUrl
UrlPattern.csGets the base URL against which the relative components are resolved, or null when it is not present.
public string? BaseUrl { get; init; }Hash
UrlPattern.csGets the hash pattern or value, or null when it is not present.
public string? Hash { get; init; }Hostname
UrlPattern.csGets the hostname pattern or value, or null when it is not present.
public string? Hostname { get; init; }Password
UrlPattern.csGets the password pattern or value, or null when it is not present.
public string? Password { get; init; }Pathname
UrlPattern.csGets the pathname pattern or value, or null when it is not present.
public string? Pathname { get; init; }Port
UrlPattern.csGets the port pattern or value, or null when it is not present.
public string? Port { get; init; }Protocol
UrlPattern.csGets the protocol pattern or value, or null when it is not present.
public string? Protocol { get; init; }Search
UrlPattern.csGets the search pattern or value, or null when it is not present.
public string? Search { get; init; }Username
UrlPattern.csGets the username pattern or value, or null when it is not present.
public string? Username { get; init; }