Property OpenDirectoryHandler
- Namespace
- DotNetBrowser.Browser.Dialogs
- Assembly
- DotNetBrowser.dll
OpenDirectoryHandler
Gets or sets a handler that is used when the browser requests to display a file chooser dialog to open a directory.
IHandler<OpenDirectoryParameters, OpenDirectoryResponse> OpenDirectoryHandler { get; set; }
Property Value
Remarks
You can use this handler to display the directory chooser dialog, or provide the chosen directory without displaying any dialogs.
Use the SelectDirectory(string) method to provide the selected directory to the browser.
Use the Cancel() method to cancel 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.