Click or drag to resize

IBrowserHostTryCloseBrowser Method

Version 101.0.180
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: 101.0.180.0 (101.0.180.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