Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.21 KB

iwebviewcontrol_invokescriptasync_1912773610.md

File metadata and controls

35 lines (23 loc) · 1.21 KB
-api-id -api-type
M:Windows.Web.UI.IWebViewControl.InvokeScriptAsync(System.String,Windows.Foundation.Collections.IIterable{System.String})
winrt method

Windows.Web.UI.IWebViewControl.InvokeScriptAsync

-description

Executes the specified script function from the currently loaded HTML, with specific arguments, as an asynchronous action.

-parameters

-param scriptName

The name of the script function to invoke.

-param arguments

A string array that packages arguments to the script function.

-returns

An asynchronous operation object from which, on successful completion, you can retrieve the string result of the script invocation.

-remarks

o prevent malicious code from exploiting your app, be sure to call this method to invoke only scripts that you trust.

The invoked script can return only string values.

Your app might appear unresponsive while scripts are running. Handle the LongRunningScriptDetected event to interrupt a long-running script.

-see-also

-examples