NET FTP Library
KiloByteAverage Property
Example 






KellermanSoftware.NetFtpLibrary Namespace > FTP Class : KiloByteAverage Property
During a file or directory transfer operation, this is the average transfer rate in KB/Sec.
Syntax
'Declaration
 
Public Overridable ReadOnly Property KiloByteAverage As System.Decimal
'Usage
 
Dim instance As FTP
Dim value As System.Decimal
 
value = instance.KiloByteAverage
public virtual System.decimal KiloByteAverage {get;}
public read-only property KiloByteAverage: System.Currency; virtual; 
public function get KiloByteAverage : System.decimal
public: __property virtual System.decimal get_KiloByteAverage();
public:
virtual property System.decimal KiloByteAverage {
   System.decimal 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.UploadDirectory("C:\\Download", "TestDir");
 
//During a file or directory transfer operation, this is the averate transfer rate in KB/Sec 
System.Console.WriteLine("Estimated average speed is {0}(KBS)", ftp.KiloByteAverage);
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.UploadDirectory("C:\\Download", "TestDir")
 
'During a file or directory transfer operation, this is the average transfer rate in KB/Sec 
System.Console.WriteLine("Estimated average speed is {0}(KBS)", ftp.KiloByteAverage)
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