V8PromiseRejectionCallback Delegate |
Represents a callback for
promise rejection events.
Namespace: Microsoft.ClearScript.V8Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.1.1
Syntaxpublic delegate void V8PromiseRejectionCallback(
V8PromiseRejectionEventKind kind,
ScriptObject promise,
Object value
)
Public Delegate Sub V8PromiseRejectionCallback (
kind As V8PromiseRejectionEventKind,
promise As ScriptObject,
value As Object
)
public delegate void V8PromiseRejectionCallback(
V8PromiseRejectionEventKind kind,
ScriptObject^ promise,
Object^ value
)
type V8PromiseRejectionCallback =
delegate of
kind : V8PromiseRejectionEventKind *
promise : ScriptObject *
value : Object -> unitParameters
- kind V8PromiseRejectionEventKind
- The promise rejection event that occurred.
- promise ScriptObject
- The promise for which the rejection event occurred.
- value Object
- The value associated with the rejection event if applicable, null otherwise (see remarks).
Remarks
For unhandled rejection, value is the rejection reason. For an attempt
to settle a previously settled promise, it is the ignored settlement value.
See Also