NET FTP Library
KiloBytesSkipped Property
Example 






KellermanSoftware.NetFtpLibrary Namespace > FTP Class : KiloBytesSkipped Property
When synchronizing, or when not overwriting files, this is the current number of bytes that didn't need to be transferred.
Syntax
'Declaration
 
Public Overridable ReadOnly Property KiloBytesSkipped As System.Long
'Usage
 
Dim instance As FTP
Dim value As System.Long
 
value = instance.KiloBytesSkipped
public virtual System.long KiloBytesSkipped {get;}
public read-only property KiloBytesSkipped: System.Int64; virtual; 
public function get KiloBytesSkipped : System.long
public: __property virtual System.long get_KiloBytesSkipped();
public:
virtual property System.int64 KiloBytesSkipped {
   System.int64 get();
}
Example
FTP ftp = new FTP(); //Trial Mode            
//FTP ftp = new FTP("place user name here", "place license key here");
 
// set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu"; // a hungarian university. change this to your ftp server
ftp.UserName = "anonymous"; // replace with your user name
ftp.Password = "user@mail.com"; // replace with your password
 
ftp.OverwriteFiles = false; //The default is true
ftp.OverwriteReadOnlyFiles = false; //The default is false
ftp.SynchronizeDownload("C://Downloads", "TestDir");
 
//if a.txt exists on both folders its size will show up in the KiloBytesSkipped property
 
//When synchronizing, or when not overwriting files,
//this is the current number of bytes that didn't need to be transferred 
System.Console.WriteLine("The FTP component did not have to transfer {0}(KB)", ftp.KiloBytesSkipped);
Dim ftp As FTP = New FTP() 'Trial Mode
'FTP ftp = new FTP("place user name here", "place license key here");
 
' set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu" ' a hungarian university. change this to your ftp server
ftp.UserName = "anonymous" ' replace with your user name
ftp.Password = "user@mail.com" ' replace with your password
 
ftp.OverwriteFiles = False 'The default is true
ftp.OverwriteReadOnlyFiles = False 'The default is false
ftp.SynchronizeDownload("C://Downloads", "TestDir")
 
'if a.txt exists on both folders its size will show up in the KiloBytesSkipped property
 
'When synchronizing, or when not overwriting files,
'this is the current number of bytes that didn't need to be transferred 
System.Console.WriteLine("The FTP component did not have to transfer {0}(KB)", ftp.KiloBytesSkipped)
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

Reference

FTP Class
FTP Members