Idioma

CoreWebView2ServiceWorkerRegistration.ActiveServiceWorker Property

Definition

The active service worker that was created. If there is no active service worker, it returns null. The active service worker is the service worker that controls the pages within the scope of the registration. See the Service Worker for more information.

This corresponds to the active property of the ServiceWorkerRegistration object in the DOM. For more information, see the MDN documentation.

public Microsoft.Web.WebView2.Core.CoreWebView2ServiceWorker ActiveServiceWorker { get; }
member this.ActiveServiceWorker : Microsoft.Web.WebView2.Core.CoreWebView2ServiceWorker
Public ReadOnly Property ActiveServiceWorker As CoreWebView2ServiceWorker

Property Value

Applies to