CookieChangeEvent Class

The change events of the Cookie Store API (https://cookiestore.spec.whatwg.org/#cookiechangeevent), fired at window.cookieStore.

public sealed class CookieChangeEvent : Event
Inheritance
Event CookieChangeEvent

Constructors

NameDescription
CookieChangeEvent(string, CookieChangeEventInit?)Creates a cookie change event with the given type and initialization dictionary.

CookieChangeEvent(string, CookieChangeEventInit?)

CookieStore.cs

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

public CookieChangeEvent(string type, CookieChangeEventInit? eventInitDict = null)

Properties

NameDescription
ChangedGets the created or changed cookies (https://cookiestore.spec.whatwg.org/#dom-cookiechangeevent-changed).
DeletedGets the deleted cookies, without value (https://cookiestore.spec.whatwg.org/#dom-cookiechangeevent-deleted).

Gets the created or changed cookies (https://cookiestore.spec.whatwg.org/#dom-cookiechangeevent-changed).

public IReadOnlyList<CookieListItem> Changed { get; }

Gets the deleted cookies, without value (https://cookiestore.spec.whatwg.org/#dom-cookiechangeevent-deleted).

public IReadOnlyList<CookieListItem> Deleted { get; }