Class IDBVersionChangeEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The IDBVersionChangeEvent interface of the IndexedDB API indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.Upgradeneeded event handler function.
[Value("IDBVersionChangeEvent")]
public class IDBVersionChangeEvent : Event
- Inheritance
-
IDBVersionChangeEvent
- Inherited Members
Remarks
-Using IndexedDB
-Starting transactions: IDBDatabase
-Using transactions: IDBTransaction
-Setting a range of keys: IDBKeyRange
-Retrieving and making changes to your data: IDBObjectStore
-Using cursors: IDBCursor
-Reference example: To-do Notifications (View the example live).
Constructors
IDBVersionChangeEvent()
public IDBVersionChangeEvent()
IDBVersionChangeEvent(string, IDBVersionChangeEventInit)
The IDBVersionChangeEvent() constructor
creates a new IDBVersionChangeEvent object, which is used to represent
when a version of the database has changed, as a result of the
'IDBOpenDBRequest.Upgradeneeded' event handler.
public IDBVersionChangeEvent(string type, IDBVersionChangeEventInit eventInitDict = null)
Parameters
typestringeventInitDictIDBVersionChangeEventInit
Remarks
Properties
NewVersion
The newVersion read-only property of the
IDBVersionChangeEvent interface returns the new version number of the
database.
[Value("newVersion")]
public ulong? NewVersion { get; }
Property Value
- ulong?
A number that is a 64-bit integer or null if the database is being deleted.
Remarks
-Using IndexedDB
-Starting transactions: IDBDatabase
-Using transactions: IDBTransaction
-Setting a range of keys: IDBKeyRange
-Retrieving and making changes to your data: IDBObjectStore
-Using cursors: IDBCursor
-Reference example: To-do Notifications (View the example live).
OldVersion
The oldVersion read-only property of the
IDBVersionChangeEvent interface returns the old version number of the
database.
[Value("oldVersion")]
public ulong OldVersion { get; }
Property Value
- ulong
A number containing a 64-bit integer.
Remarks
When the opened database doesn't exist yet, the value of oldVersion is 0.
-Using IndexedDB
-Starting transactions: IDBDatabase
-Using transactions: IDBTransaction
-Setting a range of keys: IDBKeyRange
-Retrieving and making changes to your data: IDBObjectStore
-Using cursors: IDBCursor
-Reference example: To-do Notifications (View the example live).