WebView2.ExecuteScriptAsync(String) Método

Definição

Executa de forma assíncrona o script fornecido no documento de nível superior do WebView2.

public:
 virtual IAsyncOperation<Platform::String ^> ^ ExecuteScriptAsync(Platform::String ^ javascriptCode) = ExecuteScriptAsync;
IAsyncOperation<winrt::hstring> ExecuteScriptAsync(winrt::hstring const& javascriptCode);
public IAsyncOperation<string> ExecuteScriptAsync(string javascriptCode);
function executeScriptAsync(javascriptCode)
Public Function ExecuteScriptAsync (javascriptCode As String) As IAsyncOperation(Of String)

Parâmetros

javascriptCode
String

Platform::String

winrt::hstring

O script a ser executado.

Retornos

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

Uma Tarefa que representa o processo de execução do script.

Aplica-se a