Xceed .NET Libraries Documentation
Xceed.Ftp Assembly / Xceed.Ftp Namespace / FileTransferStatusEventArgs Class / BytesTotal Property


In This Topic
    BytesTotal Property
    In This Topic
    Gets the total amount of bytes for the current file.
    Syntax
    'Declaration
     
    Public ReadOnly Property BytesTotal As Long
    'Usage
     
    Dim instance As FileTransferStatusEventArgs
    Dim value As Long
     
    value = instance.BytesTotal
    public long BytesTotal {get;}

    Property Value

    A value representing the total amount of bytes for the current file.
    Remarks

    This value is not always available when calling the FtpClient.ReceiveFile method since some FTP servers will not return the size of a file in the first reply to the RETR (ReceiveFile) FTP command and the FTP client will not request a listing of the file to retrieve when using the ReceiveFile method. As a workaround, the FtpClient.ReceiveMultipleFiles method can be used (non-recursively!) to receive the file.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also