Click or drag to resize

V8PromiseRejectionCallback Delegate

Represents a callback for promise rejection events.

Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.1.1
Syntax
public delegate void V8PromiseRejectionCallback(
	V8PromiseRejectionEventKind kind,
	ScriptObject promise,
	Object value
)

Parameters

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