WebView.SeparateProcessLost Événement

Définition

Se produit lorsqu’un WebView s’exécute avec un Mode d’exécutionde SeparateProcess et que le processus distinct est perdu.

// Register
event_token SeparateProcessLost(TypedEventHandler<WebView, WebViewSeparateProcessLostEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WebView::SeparateProcessLost_revoker SeparateProcessLost(auto_revoke_t, TypedEventHandler<WebView, WebViewSeparateProcessLostEventArgs const&> const& handler) const;
public event TypedEventHandler<WebView,WebViewSeparateProcessLostEventArgs> SeparateProcessLost;
function onSeparateProcessLost(eventArgs) { /* Your code */ }
webView.addEventListener("separateprocesslost", onSeparateProcessLost);
webView.removeEventListener("separateprocesslost", onSeparateProcessLost);
- or -
webView.onseparateprocesslost = onSeparateProcessLost;
Public Custom Event SeparateProcessLost As TypedEventHandler(Of WebView, WebViewSeparateProcessLostEventArgs) 

Type d'événement

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 1803 (introduit dans 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v6.0)

Remarques

Pour plus d’informations, consultez la section Mode d’exécution des remarques de classe WebView.

S’applique à