interface ICoreWebView2NavigationCompletedEventArgs
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
interface ICoreWebView2NavigationCompletedEventArgs
: public IUnknown
Event args for the NavigationCompleted event.
Members | Descriptions |
---|---|
get_IsSuccess | True when the navigation is successful. |
get_NavigationId | The ID of the navigation. |
get_WebErrorStatus | The error code if the navigation failed. |
True when the navigation is successful.
public HRESULT get_IsSuccess(BOOL * isSuccess)
This is false for a navigation that ended up in an error page (failures due to no network, DNS lookup failure, HTTP server responds with 4xx), but could also be false for additional things such as window.stop() called on navigated page.
The ID of the navigation.
public HRESULT get_NavigationId(UINT64 * navigation_id)
The error code if the navigation failed.
public HRESULT get_WebErrorStatus(COREWEBVIEW2_WEB_ERROR_STATUS * COREWEBVIEW2_WEB_ERROR_STATUS)