Class SharedWorkerGlobalScope
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The SharedWorkerGlobalScope object (the SharedWorker global scope) is accessible through the Self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See the complete list of functions available to workers.
[Value("SharedWorkerGlobalScope")]
public class SharedWorkerGlobalScope : WorkerGlobalScope, FontFaceSource, WindowOrWorkerGlobalScope
- Inheritance
-
SharedWorkerGlobalScope
- Implements
- Inherited Members
Remarks
Constructors
SharedWorkerGlobalScope()
public SharedWorkerGlobalScope()
Properties
Name
The name read-only property of the
SharedWorkerGlobalScope interface returns the name that the
SharedWorker was (optionally) given when it was created. This is the name
that the SharedWorker(Union97, Union98) constructor can pass
to get a reference to the SharedWorkerGlobalScope.
[Value("name")]
public string Name { get; }
Property Value
- string
A string.
Remarks
Onconnect
[Value("onconnect")]
public EventHandlerNonNull Onconnect { get; set; }
Property Value
Methods
Close()
The close() method of the SharedWorkerGlobalScope interface discards any tasks queued in the SharedWorkerGlobalScope's event loop, effectively closing this particular scope.
[Value("close")]
public GlobalObject.Undefined Close()