DotNetBrowser  1.14
Public Member Functions | Properties | List of all members
DotNetBrowser.DefaultDownloadHandler Class Referenceabstract

Basic implementation of the DownloadHandler. More...

Inherits DotNetBrowser.DownloadHandler.

Inherited by DotNetBrowser.WinForms.WinFormsDefaultDownloadHandler, and DotNetBrowser.WPF.WPFDefaultDownloadHandler.

Public Member Functions

abstract bool AllowDownload (DownloadItem downloadItem)
 This method is invoked when Browser is going to download a file. The download parameter contains all information about the the file which is going to be downloaded. More...
 

Properties

static DownloadMode DownloadMode [get, set]
 Gets or sets the file download handler mode that will be invoked every time when requests file download. Primary DownloadHandlerMode has More...
 

Detailed Description

Basic implementation of the DownloadHandler.

Member Function Documentation

abstract bool DotNetBrowser.DefaultDownloadHandler.AllowDownload ( DownloadItem  downloadItem)
pure virtual

This method is invoked when Browser is going to download a file. The download parameter contains all information about the the file which is going to be downloaded.

To suppress file download, this method must return FALSE.

By default the file will be downloaded into application's working directory. You can get or set the absolute file path using the DownloadItem.DestinationFile property.

Parameters
downloadIteminformation about the file that will be downloaded.
Returns
TRUE to allow downloading the file or FALSE to suppress it.

Implements DotNetBrowser.DownloadHandler.

Implemented in DotNetBrowser.WinForms.WinFormsDefaultDownloadHandler, and DotNetBrowser.WPF.WPFDefaultDownloadHandler.

Property Documentation

DownloadMode DotNetBrowser.DefaultDownloadHandler.DownloadMode
staticgetset

Gets or sets the file download handler mode that will be invoked every time when requests file download. Primary DownloadHandlerMode has

Default mode. It means that download dialog displayed. When it is in Silent mode it means that download dialog isn't displayed and file will be downloaded into application's working directory.