Gets the length of the data received from the FTP server.
Assembly: System (in System.dll)
When a response stream is returned by the FTP server, the property contains the number of bytes in the stream. returns −1 if no data was returned in the response or if the server did not send content length information. The return value is greater than or equal to zero if data was or should have been returned. For example, for requests that use the ListDirectory field, the property always returns −1. For requests that use the UploadFile method, the property is always zero. For requests that use the DownloadFile method, the property is greater than zero if the downloaded file contained data and is zero if it was empty.
For requests that use the GetFileSize method, returns the size of the specified file on the server.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.