Condividi tramite


WebView2.NavigationStarting Evento

Definizione

Si verifica quando il frame principale di WebView2 passa a un URI diverso.

// Register
event_token NavigationStarting(TypedEventHandler<WebView2, CoreWebView2NavigationStartingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WebView2::NavigationStarting_revoker NavigationStarting(auto_revoke_t, TypedEventHandler<WebView2, CoreWebView2NavigationStartingEventArgs const&> const& handler) const;
public event TypedEventHandler<WebView2,CoreWebView2NavigationStartingEventArgs> NavigationStarting;
function onNavigationStarting(eventArgs) { /* Your code */ }
webView2.addEventListener("navigationstarting", onNavigationStarting);
webView2.removeEventListener("navigationstarting", onNavigationStarting);
- or -
webView2.onnavigationstarting = onNavigationStarting;
Public Custom Event NavigationStarting As TypedEventHandler(Of WebView2, CoreWebView2NavigationStartingEventArgs) 

Tipo evento

Commenti

I reindirizzamenti generano anche questo evento e l'ID di spostamento è uguale a quello originale.

Si applica a