DotNetBrowser  1.14
Public Member Functions | List of all members
DotNetBrowser.WinForms.WinFormsDefaultDownloadHandler Class Reference

Represents default implementation of the DownloadHandler that will display file save dialog where user can select the destination file. More...

Inherits DotNetBrowser.DefaultDownloadHandler.

Public Member Functions

 WinFormsDefaultDownloadHandler (Control component)
 Constructs WinFormsDefaultDownloadHandler instance. More...
 
 WinFormsDefaultDownloadHandler (Control component, DownloadMode downloadMode)
 Constructs WinFormsDefaultDownloadHandler instance. More...
 
override 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...
 

Additional Inherited Members

- Properties inherited from DotNetBrowser.DefaultDownloadHandler
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

Represents default implementation of the DownloadHandler that will display file save dialog where user can select the destination file.

Constructor & Destructor Documentation

DotNetBrowser.WinForms.WinFormsDefaultDownloadHandler.WinFormsDefaultDownloadHandler ( Control  component)

Constructs WinFormsDefaultDownloadHandler instance.

Parameters
componentOwner UI component.
DotNetBrowser.WinForms.WinFormsDefaultDownloadHandler.WinFormsDefaultDownloadHandler ( Control  component,
DownloadMode  downloadMode 
)

Constructs WinFormsDefaultDownloadHandler instance.

Parameters
componentOwner UI component.
downloadModea value indicating what kind of download mode should be used.

Member Function Documentation

override bool DotNetBrowser.WinForms.WinFormsDefaultDownloadHandler.AllowDownload ( DownloadItem  downloadItem)
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.

This method return FALSE if not select file in chooser dialog.

You can set the absolute file path using in chooser dialog.

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

Implements DotNetBrowser.DefaultDownloadHandler.