次の方法で共有


WebViewControl.InvokeScriptAsync(String, IIterable<String>) メソッド

定義

現在読み込まれている HTML から、特定の引数を使用して、指定されたスクリプト関数を非同期アクションとして実行します。

詳細については、「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)

パラメーター

scriptName
String

Platform::String

winrt::hstring

呼び出すスクリプト関数の名前。

arguments

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

引数をスクリプト関数にパッケージ化する文字列配列。

戻り値

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

正常に完了すると、スクリプト呼び出しの文字列結果を取得できる非同期操作オブジェクト。

実装

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})

適用対象