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 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.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
For requests that use the GetFileSize method, returns the size of the specified file on the server.
Available since 2.0