PromiseRejectionEventInit Class

https://html.spec.whatwg.org/multipage/webappapis.html#promiserejectioneventinit

public sealed class PromiseRejectionEventInit : EventInit
Inheritance
EventInit PromiseRejectionEventInit

Constructors

NameDescription
PromiseRejectionEventInit()

PromiseRejectionEventInit()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public PromiseRejectionEventInit()

No documentation is available.

Properties

NameDescription
PromiseThe promise: a value of the script engine.
ReasonGets the reason the promise was rejected.

The promise: a value of the script engine.

public required object Promise { get; init; }

Gets the reason the promise was rejected.

public object? Reason { get; init; }