edtFTPnet/Free - Open-source FTP component for .NET | Download
Occurs when a file is about to be downloaded from the server.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0

Syntax

C#
public virtual event FTPFileTransferEventHandler Downloading
Visual Basic
Public Overridable Event Downloading As FTPFileTransferEventHandler
Visual C++
public:
virtual  event FTPFileTransferEventHandler^ Downloading {
	void add (FTPFileTransferEventHandler^ value);
	void remove (FTPFileTransferEventHandler^ value);
}

Remarks

The FTPFileTransferEventArgs argument passed to handlers has a Cancel property, that, if set to true will result in the transfer being cancelled.

If the DownloadFile(String, String) method was used to initiate the transfer then the LocalPath property may be set in order to change the path of the downloaded file.

See Also