Movatterモバイル変換


[0]ホーム

URL:


CefSharp API Doc
CefSharp API Doc
Namespaces
CefSharp
IJsDialogHandler Interface
IJsDialogHandler Methods
OnBeforeUnloadDialog Method
OnDialogClosed Method
OnJSDialog Method
OnResetDialogState Method
Click or drag to resizeClick or drag to resize

IJsDialogHandlerOnBeforeUnloadDialog Method

Version 118.6.80
Called to run a dialog asking the user if they want to leave a page. Return false to use the default dialog implementation. Return true if the application will use a custom dialog or if the callback has been executed immediately. Custom dialogs may be either modal or modeless. If a custom dialog is used the application must executecallback once the custom dialog is dismissed.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)
Syntax
boolOnBeforeUnloadDialog(IWebBrowserchromiumWebBrowser,IBrowserbrowser,stringmessageText,boolisReload,IJsDialogCallbackcallback)
boolOnBeforeUnloadDialog(IWebBrowser^chromiumWebBrowser,IBrowser^browser,String^messageText,boolisReload,IJsDialogCallback^callback)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
the ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
the browser object
messageText
Type: SystemString
message text (optional)
isReload
Type: SystemBoolean
indicates a page reload
callback
Type: CefSharpIJsDialogCallback
Callback can be executed inline or in an async fashion

Return Value

Type: Boolean
Return false to use the default dialog implementation otherwise return true to handle with your own custom implementation.
See Also

Reference

IJsDialogHandler Interface
CefSharp Namespace

https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE


[8]ページ先頭

©2009-2025 Movatter.jp