NET FTP Library
KiloBytePerSecond Property
Example 






KellermanSoftware.NetFtpLibrary Namespace > FTP Class : KiloBytePerSecond Property
This is the current speed of a file or directory transfer in KB/Sec.
Syntax
'Declaration
 
Public Overridable ReadOnly Property KiloBytePerSecond As System.Decimal
'Usage
 
Dim instance As FTP
Dim value As System.Decimal
 
value = instance.KiloBytePerSecond
public virtual System.decimal KiloBytePerSecond {get;}
public read-only property KiloBytePerSecond: System.Currency; virtual; 
public function get KiloBytePerSecond : System.decimal
public: __property virtual System.decimal get_KiloBytePerSecond();
public:
virtual property System.decimal KiloBytePerSecond {
   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");
  
//This is the current speed of a file or directory transfer in KB/Sec 
System.Console.WriteLine("Current speed is {0}(KBS)", ftp.KiloBytePerSecond);
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")
 
'This is the current speed of a file or directory transfer in KB/Sec 
System.Console.WriteLine("Current speed is {0}(KBS)", ftp.KiloBytePerSecond)
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