WorkerLocation Class
https://html.spec.whatwg.org/multipage/workers.html#worker-locations: the URL of a worker.
public sealed class WorkerLocationProperties
| Name | Description |
|---|---|
| Hash | Gets the fragment of the worker script URL, with its leading number sign, or an empty string. |
| Host | Gets the host and the port (when not the default one) of the worker script URL. |
| Hostname | Gets the host of the worker script URL. |
| Href | Gets the serialized URL of the worker script. |
| Origin | Gets the serialized origin of the worker script URL. |
| Pathname | Gets the path of the worker script URL. |
| Port | Gets the port of the worker script URL, or an empty string when it is the default one. |
| Protocol | Gets the scheme of the worker script URL followed by a colon. |
| Search | Gets the query of the worker script URL, with its leading question mark, or an empty string. |
Hash
Worker.csGets the fragment of the worker script URL, with its leading number sign, or an empty string.
public string Hash { get; }Property value
See also
Host
Worker.csGets the host and the port (when not the default one) of the worker script URL.
public string Host { get; }Property value
See also
Hostname
Worker.csHref
Worker.csOrigin
Worker.csGets the serialized origin of the worker script URL.
public string Origin { get; }Property value
See also
Pathname
Worker.csPort
Worker.csGets the port of the worker script URL, or an empty string when it is the default one.
public string Port { get; }Property value
See also
Protocol
Worker.csGets the scheme of the worker script URL followed by a colon.
public string Protocol { get; }Property value
See also
Search
Worker.csGets the query of the worker script URL, with its leading question mark, or an empty string.
public string Search { get; }Property value
See also
Methods
| Name | Description |
|---|---|
| ToString() | Returns WorkerLocation.Href. |