Condividi tramite


WebView2.WebMessageReceived Evento

Definizione

Si verifica quando viene caricato un nuovo documento HTML.

Questa documentazione si applica a WinUI 2 per UWP (per WinUI nella SDK per app di Windows, vedere gli spazi dei nomi SDK per app di 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 evento

Si applica a