Freigeben über


WebUIView.InvokeScriptAsync(String, IIterable<String>) Methode

Definition

Führt die angegebene Skriptfunktion aus dem aktuell geladenen HTML-Code mit bestimmten Argumenten als asynchrone Aktion aus.

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)

Parameter

scriptName
String

Platform::String

winrt::hstring

Der Name der skriptfunktion, die aufgerufen werden soll.

arguments

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Ein Zeichenfolgenarray, das Argumente an die Skriptfunktion packt.

Gibt zurück

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

Das Zeichenfolgenergebnis des Skriptaufrufs.

Implementiert

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

Gilt für: