Share via


WebView.SeparateProcessLost Event

Definition

Occurs when a WebView runs with an ExecutionMode of SeparateProcess, and the separate process is lost.

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

Event Type

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

For more info, see the Execution mode section of the WebView class Remarks.

Applies to