ICoreWebView2.add_NavigationStarting

Add an event handler for the NavigationStarting event. NavigationStarting runs when the WebView main frame is requesting permission to navigate to a different URI. Redirects trigger this operation as well, and the navigation id is the same as the original one.

Navigations will be blocked until all NavigationStarting event handlers return.

\snippet SettingsComponent.cpp NavigationStarting

interface ICoreWebView2
HRESULT
add_NavigationStarting

Meta