Language

CoreWebView2Frame.DedicatedWorkerCreated Event

Definition

Subscribe to this event that gets raised when a new dedicated worker is created from an iframe.

A Dedicated Worker is a type of web worker that allows you to run Javascript code in the background without blocking the main thread, making them useful for tasks like heavy computations, data processing, and parallel execution. It is "dedicated" because it is linked to a single parent document and cannot be shared with other scripts.

This event is raised when a web application creates a dedicated worker using the new Worker("/worker.js") method. See the Worker for more information.

public event EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2DedicatedWorkerCreatedEventArgs> DedicatedWorkerCreated;
member this.DedicatedWorkerCreated : EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2DedicatedWorkerCreatedEventArgs> 
Public Custom Event DedicatedWorkerCreated As EventHandler(Of CoreWebView2DedicatedWorkerCreatedEventArgs) 

Event Type

Applies to