DotNetDispatcher.EndInvokeJS(JSRuntime, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Receives notification that a call from .NET to JS has finished, marking the associated Task as completed.
public:
static void EndInvokeJS(Microsoft::JSInterop::JSRuntime ^ jsRuntime, System::String ^ arguments);
public static void EndInvokeJS (Microsoft.JSInterop.JSRuntime jsRuntime, string arguments);
static member EndInvokeJS : Microsoft.JSInterop.JSRuntime * string -> unit
Public Shared Sub EndInvokeJS (jsRuntime As JSRuntime, arguments As String)
Parameters
- arguments
- String
The serialized arguments for the callback completion.
Exceptions
This method can throw any exception either from the argument received or as a result of executing any callback synchronously upon completion.
Remarks
All exceptions from EndInvokeJS(JSRuntime, String) are caught are delivered via JS interop to the JavaScript side when it requests confirmation, as the mechanism to call EndInvokeJS(JSRuntime, String) relies on using JS->.NET interop. This overload is meant for directly triggering completion callbacks for .NET -> JS operations without going through JS interop, so the callsite for this method is responsible for handling any possible exception generated from the arguments passed in as parameters.