Click or drag to resize

IBrowserStartDownloadHandler Property

Gets or sets a handler that is used when the browser is about to start downloading the file.

Namespace:  DotNetBrowser.Browser
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.2
Syntax
C#
IHandler<StartDownloadParameters, StartDownloadResponse> StartDownloadHandler { get; set; }

Property Value

Type: IHandlerStartDownloadParameters, StartDownloadResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe IDownloads has already been disposed.
Remarks

Use the DownloadTo(String) method to confirm the download and specify the location to store the downloaded file.

Use theCancel method if you do not need to download the file.

If an exception occurs inside the handler implementation, the default behavior will be applied - the method Cancel will be used.

See Also