Class ContentIndex
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalContentIndex interface of the Content Index API allows developers to register their offline enabled content with the browser.
[Value("ContentIndex")]
public class ContentIndex
- Inheritance
-
ContentIndex
- Inherited Members
Remarks
-An introductory article on the Content Index API
-Service Worker API, along with information about Cache and CacheStorage
Constructors
ContentIndex()
public ContentIndex()
Methods
Add(ContentDescription)
NOTE
Experimentaladd() method of theContentIndex interface registers an item with the content index.
[Value("add")]
public Task<GlobalObject.Undefined> Add(ContentDescription description)
Parameters
descriptionContentDescription
Returns
- Task<GlobalObject.Undefined>
Returns a Promise that resolves with
undefined.
Remarks
-An introductory article on the Content Index API
-Service Worker API, along with information about Cache and CacheStorage
Delete(string)
NOTE
Experimentaldelete() method of theContentIndex interface unregisters an item from the currently indexed
content.
[Value("delete")]
public Task<GlobalObject.Undefined> Delete(string id)
Parameters
idstring
Returns
- Task<GlobalObject.Undefined>
Returns a Promise that resolves with
undefined.
Remarks
NOTE
Calling
delete()only affects the index. It does not delete anything
from the 'Cache'.
-An introductory article on the Content Index API
-Service Worker API, along with information about Cache and CacheStorage
GetAll()
NOTE
ExperimentalgetAll() method of theContentIndex interface returns a {{jsxref('Promise')}} that resolves with
an iterable list of content index entries.
[Value("getAll")]
public Task<List<ContentDescription>> GetAll()
Returns
- Task<List<ContentDescription>>
Returns a Promise that resolves with an 'Array' of
contentDescriptionitems.