WebView.NavigationFailed Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Catatan
NavigationFailed dapat diubah atau tidak tersedia untuk rilis setelah Windows 8.1. Sebagai gantinya, gunakan NavigationCompleted.
Terjadi ketika WebView tidak dapat menyelesaikan upaya navigasi.
public:
virtual event WebViewNavigationFailedEventHandler ^ NavigationFailed;
/// [add: Windows.Foundation.Metadata.Deprecated("NavigationFailed may be altered or unavailable for releases after Windows 8.1. Instead, use NavigationCompleted.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("NavigationFailed may be altered or unavailable for releases after Windows 8.1. Instead, use NavigationCompleted.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
// Register
event_token NavigationFailed(WebViewNavigationFailedEventHandler const& handler) const;
// Revoke with event_token
void NavigationFailed(event_token const* cookie) const;
// Revoke with event_revoker
WebView::NavigationFailed_revoker NavigationFailed(auto_revoke_t, WebViewNavigationFailedEventHandler const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("NavigationFailed may be altered or unavailable for releases after Windows 8.1. Instead, use NavigationCompleted.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("NavigationFailed may be altered or unavailable for releases after Windows 8.1. Instead, use NavigationCompleted.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
// Register
event_token NavigationFailed(WebViewNavigationFailedEventHandler const& handler) const;
// Revoke with event_token
void NavigationFailed(event_token const* cookie) const;
// Revoke with event_revoker
WebView::NavigationFailed_revoker NavigationFailed(auto_revoke_t, WebViewNavigationFailedEventHandler const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("NavigationFailed may be altered or unavailable for releases after Windows 8.1. Instead, use NavigationCompleted.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[remove: Windows.Foundation.Metadata.Deprecated("NavigationFailed may be altered or unavailable for releases after Windows 8.1. Instead, use NavigationCompleted.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public event WebViewNavigationFailedEventHandler NavigationFailed;
[add: Windows.Foundation.Metadata.Deprecated("NavigationFailed may be altered or unavailable for releases after Windows 8.1. Instead, use NavigationCompleted.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("NavigationFailed may be altered or unavailable for releases after Windows 8.1. Instead, use NavigationCompleted.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public event WebViewNavigationFailedEventHandler NavigationFailed;
function onNavigationFailed(eventArgs) { /* Your code */ }
webView.addEventListener("navigationfailed", onNavigationFailed);
webView.removeEventListener("navigationfailed", onNavigationFailed);
- or -
webView.onnavigationfailed = onNavigationFailed;
Public Custom Event NavigationFailed As WebViewNavigationFailedEventHandler
<WebView NavigationFailed="eventhandler" />
Jenis Acara
- Atribut