WebViewControl.InvokeScriptAsync(String, IIterable<String>) WebViewControl.InvokeScriptAsync(String, IIterable<String>) WebViewControl.InvokeScriptAsync(String, IIterable<String>) WebViewControl.InvokeScriptAsync(String, IIterable<String>) WebViewControl.InvokeScriptAsync(String, IIterable<String>) Method

Definition

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

For more info, see Windows.Web.UI.IWebViewControl

public : IAsyncOperation<Platform::String> InvokeScriptAsync(Platform::String scriptName, IIterable<Platform::String> arguments)
IAsyncOperation<winrt::hstring> InvokeScriptAsync(winrt::hstring scriptName, IIterable<winrt::hstring> arguments) const;
public IAsyncOperation<string> InvokeScriptAsync(String scriptName, IEnumerable<String> arguments)
Public Function InvokeScriptAsync(scriptName As String, arguments As IEnumerable(Of String)) As IAsyncOperation(Of string)
Windows.Web.UI.Interop.WebViewControl.invokeScriptAsync(scriptName, arguments).done( /* Your success and error handlers */ );

Parameters

scriptName
String String String

The name of the script function to invoke.

arguments
IEnumerable<String> IEnumerable<String> IEnumerable<String>

A string array that packages arguments to the script function.

Returns

When this method returns, the string result of the script invocation.