Click or drag to resize

IJsDialogsConfirmHandler Property

Gets or sets a handler that is used when JavaScript confirmation dialog should be displayed.

Namespace:  DotNetBrowser.Browser.Dialogs
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.16.1
Syntax
C#
IHandler<ConfirmParameters, ConfirmResponse> ConfirmHandler { get; set; }

Property Value

Type: IHandlerConfirmParameters, ConfirmResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IBrowser has already been disposed.
ConnectionClosedExceptionThe connection to the Chromium engine is closed.
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.

See Also