Property ConfirmHandler
- Namespace
- DotNetBrowser.Browser.Dialogs
- Assembly
- DotNetBrowser.dll
ConfirmHandler
Gets or sets a handler that is used when JavaScript confirmation dialog should be displayed.
IHandler<ConfirmParameters, ConfirmResponse> ConfirmHandler { get; set; }
Property Value
Remarks
In this handler you can display standard modal dialog with the message that you can get from ConfirmParameters. Please note that it is not necessary to display a dialog in this handler.
Use the Ok() to notify that the JavaScript dialog is closed with the "OK" action.
Use the Cancel() method to dismiss the dialog.
If the handler throws an exception, the Cancel() method will be used.
Exceptions
- ObjectDisposedException
The IBrowser has already been disposed.
- ConnectionClosedException
The connection to the Chromium engine is closed.