Size of remote file (see remarks)

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

Syntax

C#
public long RemoteFileSize { get; }
Visual Basic
Public ReadOnly Property RemoteFileSize As Long
	Get
Visual C++
public:
property long long RemoteFileSize {
	long long get ();
}

Remarks

For the Downloading and Uploading events, the value of this property will be the size of the local file, since it is not yet known what size ASCII files will be once uploaded to the server.

Some servers do not support the command required to get the size of a particular file. In this case, or in case of an error, the FileSize property will be -1.

See Also