Click or drag to resize

IBrowserHostTryCloseBrowser Method

Version 91.1.160
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: 91.1.160.0 (91.1.160.0)
Syntax
bool TryCloseBrowser()

Return Value

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