IJsDialogsConfirmHandler Property |
Namespace: DotNetBrowser.Browser.Dialogs
IHandler<ConfirmParameters, ConfirmResponse> ConfirmHandler { get; set; }
Exception | Condition |
---|---|
ObjectDisposedException | The IBrowser has already been disposed. |
ConnectionClosedException | The connection to the Chromium engine is closed. |
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.