StorageEventInit Class

https://html.spec.whatwg.org/multipage/webstorage.html#storageeventinit

public sealed class StorageEventInit : EventInit
Inheritance
EventInit StorageEventInit

Constructors

NameDescription
StorageEventInit()

StorageEventInit()

HtmlEvents.cs
public StorageEventInit()

No documentation is available.

Properties

NameDescription
KeyGets the key that was changed, or null when the storage was cleared.
NewValueGets the new value of the key, or null when it was removed.
OldValueGets the previous value of the key, or null when it did not exist.
StorageAreaGets the storage area that changed.
UrlGets 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; init; }

Gets the new value of the key, or null when it was removed.

public string? NewValue { get; init; }

Gets the previous value of the key, or null when it did not exist.

public string? OldValue { get; init; }

StorageArea

HtmlEvents.cs

Gets the storage area that changed.

public Storage? StorageArea { get; init; }

Gets the URL of the document whose storage changed.

public string Url { get; init; }