IdbVersionChangeEvent Class

https://w3c.github.io/IndexedDB/#idbversionchangeevent

public sealed class IdbVersionChangeEvent : Event
Inheritance
Event IdbVersionChangeEvent

Constructors

NameDescription
IdbVersionChangeEvent(string, IdbVersionChangeEventInit?)Creates a version change event with the given type and initialization dictionary.

IdbVersionChangeEvent(string, IdbVersionChangeEventInit?)

IdbTypes.cs

Creates a version change event with the given type and initialization dictionary.

public IdbVersionChangeEvent(string type, IdbVersionChangeEventInit? eventInitDict = null)

Properties

NameDescription
NewVersionGets the new version of the database, or null when it is deleted.
OldVersionGets the previous version of the database.

NewVersion

IdbTypes.cs

Gets the new version of the database, or null when it is deleted.

public ulong? NewVersion { get; }

OldVersion

IdbTypes.cs

Gets the previous version of the database.

public ulong OldVersion { get; }