Click or drag to resize

IBrowserHostTryCloseBrowser Method

Version 130.1.90
Helper for closing a browser. Call this method from the top-level window close handler. Internally this calls CloseBrowser(false) if the close has not yet been initiated. This method returns false while the close is pending and true after the close has completed. See CloseBrowser(Boolean) and DoClose(IWebBrowser, IBrowser) documentation for additional usage information. This method must be called on the CEF UI thread.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
bool TryCloseBrowser()

Return Value

Boolean
This method returns false while the close is pending and true after the close has completed
See Also