Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebViewControl.InvokeScriptAsync(String, IIterable<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.

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:
 virtual IAsyncOperation<Platform::String ^> ^ InvokeScriptAsync(Platform::String ^ scriptName, IIterable<Platform::String ^> ^ arguments) = InvokeScriptAsync;
IAsyncOperation<winrt::hstring> InvokeScriptAsync(winrt::hstring const& scriptName, IIterable<winrt::hstring> const& arguments);
public IAsyncOperation<string> InvokeScriptAsync(string scriptName, IEnumerable<string> arguments);
function invokeScriptAsync(scriptName, arguments)
Public Function InvokeScriptAsync (scriptName As String, arguments As IEnumerable(Of String)) As IAsyncOperation(Of String)

Parameters

scriptName
String

Platform::String

winrt::hstring

The name of the script function to invoke.

arguments

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

A string array that packages arguments to the script function.

Returns

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

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

Implements

M:Windows.Web.UI.IWebViewControl.InvokeScriptAsync(System.String,Windows.Foundation.Collections.IIterable{System.String}) M:Windows.Web.UI.IWebViewControl.InvokeScriptAsync(Platform::String,Windows.Foundation.Collections.IIterable{Platform::String}) M:Windows.Web.UI.IWebViewControl.InvokeScriptAsync(winrt::hstring,Windows.Foundation.Collections.IIterable{winrt::hstring})

Applies to


Feedback

Was this page helpful?