다음을 통해 공유


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

적용 대상