Method InvokeScriptAsync
InvokeScriptAsync(string, IntPtr, params object?[])
Executes the given JavaScript function asynchronously and returns the result via a ScriptResult event.
public virtual void InvokeScriptAsync(string scriptName, IntPtr clientData, params object?[] args)
Parameters
scriptNamestringThe name of the script function to execute.
clientDataIntPtrArbirary pointer to data that can be retrieved from the result event. You can use IntPtr.Zero, new IntPtr(SomeInt) or some useful data in this parameter.
argsobject[]The parameters to pass to the script function.