CoreApplicationView.HostedViewClosing Evento

Definición

Indica que la vista hospedada se está cerrando. Proporciona una oportunidad para escenarios de ventana hospedada para aplazar la anulación de la vista hospedada.

// Register
event_token HostedViewClosing(TypedEventHandler<CoreApplicationView, HostedViewClosingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreApplicationView::HostedViewClosing_revoker HostedViewClosing(auto_revoke_t, TypedEventHandler<CoreApplicationView, HostedViewClosingEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreApplicationView,HostedViewClosingEventArgs> HostedViewClosing;
function onHostedViewClosing(eventArgs) { /* Your code */ }
coreApplicationView.addEventListener("hostedviewclosing", onHostedViewClosing);
coreApplicationView.removeEventListener("hostedviewclosing", onHostedViewClosing);
- or -
coreApplicationView.onhostedviewclosing = onHostedViewClosing;
Public Custom Event HostedViewClosing As TypedEventHandler(Of CoreApplicationView, HostedViewClosingEventArgs) 

Tipo de evento

Comentarios

Controlar este evento ofrece la oportunidad de realizar tareas de limpieza, como cerrar archivos, vaciar búferes en el disco, etc.

Se aplica a