Table of Contents

Class ContentIndexEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The ContentIndexEvent interface of the content index defines the object used to represent the ServiceWorkerGlobalScope.Contentdelete event.
[Value("ContentIndexEvent")]
public class ContentIndexEvent : ExtendableEvent
Inheritance
ContentIndexEvent
Inherited Members

Remarks

This event is sent to the global scope of a 'ServiceWorker'. It contains the id of the indexed content to be removed.

The ServiceWorkerGlobalScope.Contentdelete event is only fired when the deletion happens due to interaction with the browser's built-in user interface. It is not fired when the 'ContentIndex.Delete' method is called.

-An introductory article on the Content Index API
-Service Worker API, along with information about Cache and CacheStorage

See also on MDN

Constructors

ContentIndexEvent()

public ContentIndexEvent()

ContentIndexEvent(string, ContentIndexEventInit)

NOTE
Experimental
The ContentIndexEvent() constructor creates a new ContentIndexEvent object
whose type and other options are configured as specified.
public ContentIndexEvent(string type, ContentIndexEventInit init)

Parameters

type string
init ContentIndexEventInit

Remarks

Properties

Id

NOTE
Experimental
The id read-only property of the
ContentIndexEvent interface is a {{jsxref('String')}} which identifies
the deleted content index via its id.
[Value("id")]
public string Id { get; }

Property Value

string

A String representation of the deleted content index id.

Remarks