interface ICoreWebView2NavigationCompletedEventArgs
interface ICoreWebView2NavigationCompletedEventArgs
: public IUnknown
Event args for the NavigationCompleted
event.
Summary
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. |
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | 0.9.430 |
WebView2 Win32 Prerelease | 0.9.488 |
Members
get_IsSuccess
TRUE
when the navigation is successful.
public HRESULT get_IsSuccess(BOOL * isSuccess)
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 may also be FALSE
for additional scenarios such as window.stop()
run on navigated page. Note that WebView2 will report the navigation as 'unsuccessful' if the load for the navigation did not reach the expected completion for any reason. Such reasons include potentially catastrophic issues such network and certificate issues, but can also be the result of intended actions such as the app canceling a navigation or navigating away before the original navigation completed. Applications should not just rely on this flag, but also consider the reported WebErrorStatus to determine whether the failure is indeed catastrophic in their context. WebErrorStatuses that may indicate a non-catastrophic failure include:
COREWEBVIEW2_WEB_ERROR_STATUS_OPERATION_CANCELED
COREWEBVIEW2_WEB_ERROR_STATUS_VALID_AUTHENTICATION_CREDENTIALS_REQUIRED
COREWEBVIEW2_WEB_ERROR_STATUS_VALID_PROXY_AUTHENTICATION_REQUIRED
get_NavigationId
The ID of the navigation.
public HRESULT get_NavigationId(UINT64 * navigationId)
get_WebErrorStatus
The error code if the navigation failed.
public HRESULT get_WebErrorStatus(COREWEBVIEW2_WEB_ERROR_STATUS * webErrorStatus)
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기