interface ICoreWebView2TrySuspendCompletedHandler

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

interface ICoreWebView2TrySuspendCompletedHandler
  : public IUnknown

The caller implements this interface to receive the TrySuspend result.

Summary

Members Descriptions
Invoke Provides the result of the TrySuspend operation.

Applies to

Product Introduced
WebView2 Win32 1.0.774.44
WebView2 Win32 Prerelease 1.0.790

Members

Invoke

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.