Click or drag to resize

IJsPromiseThen Method (ActionObject, ActionObject)

Appends fulfillment and rejection handlers to the promise.

Namespace:  DotNetBrowser.Js
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.4
Syntax
C#
IJsPromise Then(
	Action<Object> onFulfilled,
	Action<Object> onRejected = null
)

Parameters

onFulfilled
Type: SystemActionObject
The fulfillment handler.
onRejected (Optional)
Type: SystemActionObject
The rejection handler.

Return Value

Type: IJsPromise
A new IJsPromise resolving to the return value of the called handler, or to its original settled value if the promise was not handled.
Exceptions
ExceptionCondition
JsExceptionThe JavaScript function raised an exception.
ObjectDisposedExceptionThe IJsPromise has already been disposed.
ConnectionClosedExceptionThe connection to the Chromium engine is closed.
See Also