CoreWebView2ServiceWorkerRegistration.ActiveServiceWorker Property

Definition

The active service worker that was created. If there is no active service worker, it returns a null pointer. The active service worker is the service worker that controls the pages within the scope of the registration. See the [Service Worker] (https://developer.mozilla.org/docs/Web/API/ServiceWorker) for more information.

        This corresponds to the `active` property of the `ServiceWorkerRegistration` object in the DOM.
        For more information, see the [MDN documentation]
        (https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active).
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