Compartilhar via


WebView2.WebMessageReceived Evento

Definição

Ocorre quando um novo documento HTML é carregado.

Esta documentação se aplica ao WinUI 2 para UWP (para WinUI no SDK do Aplicativo Windows, consulte os namespaces SDK do Aplicativo Windows).

// Register
event_token WebMessageReceived(TypedEventHandler<WebView2, CoreWebView2WebMessageReceivedEventArgs const&> const& handler) const;

// Revoke with event_token
void WebMessageReceived(event_token const* cookie) const;

// Revoke with event_revoker
WebView2::WebMessageReceived_revoker WebMessageReceived(auto_revoke_t, TypedEventHandler<WebView2, CoreWebView2WebMessageReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<WebView2,CoreWebView2WebMessageReceivedEventArgs> WebMessageReceived;
Public Custom Event WebMessageReceived As TypedEventHandler(Of WebView2, CoreWebView2WebMessageReceivedEventArgs) 

Tipo de evento

Aplica-se a