An NDoc Documented Class Library |

# FTPFileTransferEventArgs.FileSize Property

NOTE: This property is now obsolete.

Use LocalFileSize and RemoteFileSize

Size of remote file (see remarks)

public long FileSize {get;}

#### Remarks

This property has been supercede by LocalFileSize and RemoteFileSize, to reflect the fact that the local and remote file-sizes may be different when transferring in ASCII mode.

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

FTPFileTransferEventArgs Class | EnterpriseDT.Net.Ftp Namespace