WebView.LoadCompleted Evento

Definición

Nota

LoadCompleted puede modificarse o no estar disponible para las versiones después de Windows 8.1. En su lugar, use NavigationCompleted.

Se produce cuando se completa la navegación de nivel superior y el contenido se carga en el control WebView o cuando se produce un error durante la carga.

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"/>

Tipo de evento

Atributos

Se aplica a