WorkerOptions Class

https://html.spec.whatwg.org/multipage/workers.html#workeroptions

public class WorkerOptions

Constructors

NameDescription
WorkerOptions()

WorkerOptions()

Worker.cs
public WorkerOptions()

No documentation is available.

Properties

NameDescription
CredentialsGets the credentials mode of the fetch of a module script.
NameGets the name of the worker, exposed by its global object.
TypeGets the type of the script: a classic script, or a module script.

Credentials

Worker.cs

Gets the credentials mode of the fetch of a module script.

public RequestCredentials Credentials { get; init; }

Gets the name of the worker, exposed by its global object.

public string Name { get; init; }

Gets the type of the script: a classic script, or a module script.

public WorkerType Type { get; init; }