description | title | author | ms.author | ms.date | ms.topic | keywords |
---|---|---|---|---|---|---|
The caller implements this interface to receive the TrySuspend result. |
WebView2 Win32 C++ ICoreWebView2TrySuspendCompletedHandler |
MSEdgeTeam |
msedgedevrel |
07/26/2021 |
reference |
IWebView2, IWebView2WebView, webview2, webview, win32 apps, win32, edge, ICoreWebView2, ICoreWebView2Controller, browser control, edge html, ICoreWebView2TrySuspendCompletedHandler |
[!INCLUDE deprecation-note]
interface ICoreWebView2TrySuspendCompletedHandler
: public IUnknown
The caller implements this interface to receive the TrySuspend result.
Members | Descriptions |
---|---|
Invoke | Provides the result of the TrySuspend operation. |
Product | Introduced |
---|---|
WebView2 Win32 | 1.0.774.44 |
WebView2 Win32 Prerelease | 1.0.790 |
Provides the result of the TrySuspend operation.
public HRESULT Invoke(HRESULT errorCode, BOOL isSuccessful)
See Sleeping Tabs FAQ for conditions that might prevent WebView from being suspended. In those situations, isSuccessful will be false and errorCode is S_OK.