StorageEvent Class
https://html.spec.whatwg.org/multipage/webstorage.html#storageevent
public sealed class StorageEvent : Event- Inheritance
EventStorageEvent
Constructors
| Name | Description |
|---|---|
| StorageEvent(string, StorageEventInit?) | Creates a storage event with the given type and initialization dictionary. |
StorageEvent(string, StorageEventInit?)
HtmlEvents.csCreates a storage event with the given type and initialization dictionary.
public StorageEvent(string type, StorageEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| Key | Gets the key that was changed, or null when the storage was cleared. |
| NewValue | Gets the new value of the key, or null when it was removed. |
| OldValue | Gets the previous value of the key, or null when it did not exist. |
| StorageArea | Gets the storage area that changed. |
| Url | Gets the URL of the document whose storage changed. |
Gets the key that was changed, or null when the storage was cleared.
public string? Key { get; }Property value
See also
NewValue
HtmlEvents.csGets the new value of the key, or null when it was removed.
public string? NewValue { get; }Property value
See also
OldValue
HtmlEvents.csGets the previous value of the key, or null when it did not exist.
public string? OldValue { get; }Property value
See also
StorageArea
HtmlEvents.csGets the storage area that changed.
public Storage? StorageArea { get; }Methods
| Name | Description |
|---|---|
| InitStorageEvent(string, bool, bool, string?, string?, string?, string, Storage?) | https://html.spec.whatwg.org/multipage/webstorage.html#dom-storageevent-initstorageevent |