Class WorkerLocation
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The WorkerLocation interface defines the absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the Location property obtained by calling self.location.
[Value("WorkerLocation")]
public class WorkerLocation
- Inheritance
-
WorkerLocation
- Inherited Members
Remarks
This interface is only visible from inside a JavaScript script executed in the context of a Web worker.
-Other Worker-related interfaces: Worker, WorkerNavigator, and WorkerGlobalScope
-Using web workers
Constructors
WorkerLocation()
public WorkerLocation()
Properties
Hash
The hash property of a WorkerLocation object returns the Hash part of the worker's location.
[Value("hash")]
public string Hash { get; }
Property Value
- string
A string.
Remarks
-The WorkerLocation interface it belongs to.
Host
The host property of a WorkerLocation object returns the Host part of the worker's location.
[Value("host")]
public string Host { get; }
Property Value
- string
A string.
Remarks
-The WorkerLocation interface it belongs to.
Hostname
The hostname property of a WorkerLocation object returns the Hostname part of the worker's location.
[Value("hostname")]
public string Hostname { get; }
Property Value
- string
A string.
Remarks
-The WorkerLocation interface it belongs to.
Href
The href property of a WorkerLocation object returns a string containing the serialized URL for the worker's location.
[Value("href")]
public string Href { get; }
Property Value
- string
A string.
Remarks
-The WorkerLocation interface it belongs to.
Origin
The origin property of a WorkerLocation object returns the worker's Origin.
[Value("origin")]
public string Origin { get; }
Property Value
- string
A string.
Remarks
-The WorkerLocation interface it belongs to.
Pathname
The pathname property of a WorkerLocation object returns the Pathname part of the worker's location.
[Value("pathname")]
public string Pathname { get; }
Property Value
- string
A string.
Remarks
-The WorkerLocation interface it belongs to.
Port
The port property of a WorkerLocation object returns the Port part of the worker's location.
[Value("port")]
public string Port { get; }
Property Value
- string
A string.
Remarks
-The WorkerLocation interface it belongs to.
Protocol
The protocol property of a WorkerLocation object returns the Protocol part of the worker's location.
[Value("protocol")]
public string Protocol { get; }
Property Value
- string
A string.
Remarks
-The WorkerLocation interface it belongs to.
Search
The search property of a WorkerLocation object returns the Search part of the worker's location.
[Value("search")]
public string Search { get; }
Property Value
- string
A string.
Remarks
-The WorkerLocation interface it belongs to.