Class ContentIndexEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalContentIndexEvent 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
Constructors
ContentIndexEvent()
public ContentIndexEvent()
ContentIndexEvent(string, ContentIndexEventInit)
NOTE
ExperimentalContentIndexEvent() constructor creates a new ContentIndexEvent objectwhose type and other options are configured as specified.
public ContentIndexEvent(string type, ContentIndexEventInit init)
Parameters
typestringinitContentIndexEventInit
Remarks
-An introductory article on the Content Index API
-Service Worker API, along with information about Cache and CacheStorage
Properties
Id
NOTE
Experimentalid read-only property of theContentIndexEvent interface is a {{jsxref('String')}} which identifies
the deleted content index via its
id.
[Value("id")]
public string Id { get; }