PromiseRejectionEvent Class
https://html.spec.whatwg.org/multipage/webappapis.html#promiserejectionevent
public sealed class PromiseRejectionEvent : Event- Inheritance
EventPromiseRejectionEvent
Constructors
| Name | Description |
|---|---|
| PromiseRejectionEvent(string, PromiseRejectionEventInit) | Creates a promise rejection event with the given type and initialization dictionary. |
PromiseRejectionEvent(string, PromiseRejectionEventInit)
HtmlEvents.csCreates a promise rejection event with the given type and initialization dictionary.
public PromiseRejectionEvent(string type, PromiseRejectionEventInit eventInitDict)Properties
| Name | Description |
|---|---|
| Promise | https://html.spec.whatwg.org/multipage/webappapis.html#dom-promiserejectionevent-promise: a value of the script engine. |
| Reason | Gets the reason the promise was rejected. |
Promise
HtmlEvents.cshttps://html.spec.whatwg.org/multipage/webappapis.html#dom-promiserejectionevent-promise: a value of the script engine.
public object Promise { get; }Reason
HtmlEvents.csGets the reason the promise was rejected.
public object? Reason { get; }