IJsPromise Interface |
Namespace: DotNetBrowser.Js
public interface IJsPromise : IJsObject, IAutoDisposable
The IJsPromise type exposes the following members.
Name | Description | |
---|---|---|
Frame |
Gets the IFrame instance this JavaScript object is bound to.
(Inherited from IJsObject.) | |
IsDisposed |
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.) | |
Properties |
Gets the object properties as a live collection.
Modifying this collection will lead to updating the object properties.
(Inherited from IJsObject.) |
Name | Description | |
---|---|---|
Catch(ActionObject) |
Appends the rejection handler to the promise.
| |
Catch(FuncObject, Object) |
Appends the rejection handler to the promise.
| |
Finally(ActionObject) |
Appends the handler that will be invoked if the promise is settled (fulfilled/rejected).
| |
Finally(FuncObject, Object) |
Appends the handler that will be invoked if the promise is settled (fulfilled/rejected).
| |
InvokeT(String, Object) |
Executes the function with the given methodName and the args in the
JavaScript object. This method blocks current thread execution until the function finishes
its execution. If the function raises an exception, then a JsException with an error
message that describes the reason of the exception will be thrown. Same error message will be
printed in JavaScript Console.
(Inherited from IJsObject.) | |
Then(ActionObject, ActionObject) |
Appends fulfillment and rejection handlers to the promise.
| |
Then(FuncObject, Object, FuncObject, Object) |
Appends fulfillment and rejection handlers to the promise.
|
Name | Description | |
---|---|---|
Disposed |
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.) |
Name | Description | |
---|---|---|
ToJsonString |
Converts the given JavaScript object into a JSON string.
(Defined by JsonExtensions.) |
The IJsPromise interface can be used to register .NET delegates as Promise handlers.