Partage via


WebView.LoadCompleted Événement

Définition

Notes

LoadCompleted peut être modifié ou indisponible pour les mises en production après Windows 8.1. Utilisez plutôt NavigationCompleted.

Se produit lorsque la navigation de niveau supérieur se termine et que le contenu se charge dans le contrôle WebView ou lorsqu’une erreur se produit pendant le chargement.

public:
 virtual event LoadCompletedEventHandler ^ LoadCompleted;
/// [add: Windows.Foundation.Metadata.Deprecated("LoadCompleted 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("LoadCompleted 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 LoadCompleted(LoadCompletedEventHandler const& handler) const;

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

// Revoke with event_revoker
WebView::LoadCompleted_revoker LoadCompleted(auto_revoke_t, LoadCompletedEventHandler const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("LoadCompleted 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("LoadCompleted 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 LoadCompleted(LoadCompletedEventHandler const& handler) const;

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

// Revoke with event_revoker
WebView::LoadCompleted_revoker LoadCompleted(auto_revoke_t, LoadCompletedEventHandler const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("LoadCompleted 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("LoadCompleted 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 LoadCompletedEventHandler LoadCompleted;
[add: Windows.Foundation.Metadata.Deprecated("LoadCompleted 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("LoadCompleted 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 LoadCompletedEventHandler LoadCompleted;
function onLoadCompleted(eventArgs) { /* Your code */ }
webView.addEventListener("loadcompleted", onLoadCompleted);
webView.removeEventListener("loadcompleted", onLoadCompleted);
- or -
webView.onloadcompleted = onLoadCompleted;
Public Custom Event LoadCompleted As LoadCompletedEventHandler 
<WebView LoadCompleted="eventhandler"/>

Type d'événement

Attributs

S’applique à