Table of Contents

Method Finally

Namespace
DotNetBrowser.Js
Assembly
DotNetBrowser.dll

Finally(Action<object>)

Appends the handler that will be invoked if the promise is settled (fulfilled/rejected).

IJsPromise Finally(Action<object> onFinally)

Parameters

onFinally Action<object>

The rejection handler.

Returns

IJsPromise

A new IJsPromiseresolving to the return value of the called handler, or to its original settled value if the promise was not handled.

Exceptions

JsException

The JavaScript function raised an exception.

ObjectDisposedException

The IJsPromise has already been disposed.

ConnectionClosedException

The connection to the Chromium engine is closed.

Finally(Func<object, object>)

Appends the handler that will be invoked if the promise is settled (fulfilled/rejected).

IJsPromise Finally(Func<object, object> onFinally)

Parameters

onFinally Func<object, object>

The rejection handler.

Returns

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

JsException

The JavaScript function raised an exception.

ObjectDisposedException

The IJsPromise has already been disposed.

ConnectionClosedException

The connection to the Chromium engine is closed.