IJsPromise.Then Method (Action<Object>, Action<Object>) |
Appends fulfillment and rejection handlers to the promise.
Namespace:
DotNetBrowser.Js
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.12.0
SyntaxIJsPromise Then(
Action<Object> onFulfilled,
Action<Object> onRejected = null
)
Parameters
- onFulfilled
- Type: System.Action<Object>
The fulfillment handler. - onRejected (Optional)
- Type: System.Action<Object>
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
See Also