Share via


CoreWebView2SharedWorkerManager.SharedWorkerCreated Event

Definition

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](https://developer.mozilla.org/docs/Web/API/SharedWorker)
        for more information.
public event EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2SharedWorkerCreatedEventArgs> SharedWorkerCreated;
member this.SharedWorkerCreated : EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2SharedWorkerCreatedEventArgs> 
Public Custom Event SharedWorkerCreated As EventHandler(Of CoreWebView2SharedWorkerCreatedEventArgs) 

Event Type

Applies to