An NDoc Documented Class Library

FTPConnection.Downloading Event

Occurs when a file is about to be downloaded from the server.

public event FTPFileTransferEventHandler Downloading;

Event Data

The event handler receives an argument of type FTPFileTransferEventArgs containing data related to this event. The following FTPFileTransferEventArgs properties provide information specific to this event.

Property Description
Appended Indicates whether or not data was appended to the remote file.
Bytes Reference to byte-array if LocalDataType is ByteArray.
Cancel Cancel transfer.
FileSize Size of remote file (see remarks)
LocalDataType Type of local data source/destination.
LocalPath Path of local file if LocalDataType is File.
RemoteFile Name of remote file.
Stream Reference to Stream if LocalDataType is Stream.

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 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

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace