WebView.SeparateProcessLost Event
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;
C#
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)
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
For more info, see the Execution mode section of the WebView class Remarks.
Product | Versies |
---|---|
WinRT | Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |