AddEventListenerOptions Class

https://dom.spec.whatwg.org/#dictdef-addeventlisteneroptions

public sealed class AddEventListenerOptions : EventListenerOptions
Inheritance
EventListenerOptions AddEventListenerOptions

Constructors

NameDescription
AddEventListenerOptions()

AddEventListenerOptions()

public AddEventListenerOptions()

No documentation is available.

Properties

NameDescription
OnceGets a value indicating whether the listener is removed after it is invoked once.
PassiveGets a value indicating whether the listener never calls preventDefault(), or null to use the default.
SignalGets the signal that removes the listener when it is aborted.

Gets a value indicating whether the listener is removed after it is invoked once.

public bool Once { get; init; }

Gets a value indicating whether the listener never calls preventDefault(), or null to use the default.

public bool? Passive { get; init; }

Gets the signal that removes the listener when it is aborted.

public AbortSignal? Signal { get; init; }