Table of Contents

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

See also on MDN

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.

See also on MDN

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.

See also on MDN

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.

See also on MDN

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.

See also on MDN

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.

See also on MDN

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.

See also on MDN

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.

See also on MDN

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.

See also on MDN

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.

See also on MDN