NET FTP Library
KiloBytePeak Property
Example 






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