Partager via


WebView2.WebMessageReceived Événement

Définition

Se produit lorsqu’un nouveau document HTML est chargé.

Cette documentation s’applique à WinUI 2 pour UWP (pour WinUI dans le SDK d'application Windows, consultez les espaces de noms SDK d'application 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) 

Type d'événement

S’applique à