Condividi tramite


WebView2.ExecuteScriptAsync(String) Metodo

Definizione

Esegue in modo asincrono lo script fornito nel documento di primo livello di 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)

Parametri

javascriptCode
String

Platform::String

winrt::hstring

Script da eseguire.

Restituisce

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

Oggetto Task che rappresenta il processo di esecuzione dello script.

Si applica a