An NDoc Documented Class Library |

# FTPConnection.OnDownloading Method (Stream, String, Int64, Int64, DateTime)

Called when a file is about to be downloaded.

protected bool OnDownloading(
Stream destStream,
string remoteFile,
long bytesDownloaded,
out long currentFileSize,
out DateTime currentModTime
);

#### Parameters

destStream
  Stream to which data will be written.
remoteFile
  Path of remote file.
bytesDownloaded
currentFileSize
currentModTime

#### Return Value

`true` if the operation is to continue.

#### See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace | FTPConnection.OnDownloading Overload List