Summary
| Members | Description |
|---|---|
| GetSharedWorkersAsync | Gets a list of the shared workers created under the same profile. |
| SharedWorkerCreated | Add an event handler for the SharedWorkerCreated event. |
Methods
GetSharedWorkersAsync
IAsyncOperation<IVectorView<CoreWebView2SharedWorker>> GetSharedWorkersAsync()
Gets a list of the shared workers created under the same profile.
Events
SharedWorkerCreated
Add an event handler for the SharedWorkerCreated event.
A SharedWorker is a specific type of worker that can be accessed from several browsing contexts, such as multiple windows, iframes, or even other workers. Unlike Dedicated Workers, which have their own separate global scope, SharedWorkers share a common global scope called SharedWorkerGlobalScope.
This event is raised when a web application creates a shared worker using the new SharedWorker("worker.js") method. See the
Shared Worker for more information.
Type: TypedEventHandler<CoreWebView2SharedWorkerManager, CoreWebView2SharedWorkerCreatedEventArgs>