NET FTP Library
LastFtpResponse Property
Example 






KellermanSoftware.NetFtpLibrary Namespace > FTP Class : LastFtpResponse Property
Return the last FTP Response from the server.
Syntax
'Declaration
 
Public Overridable ReadOnly Property LastFtpResponse As FtpResponse
'Usage
 
Dim instance As FTP
Dim value As FtpResponse
 
value = instance.LastFtpResponse
public virtual FtpResponse LastFtpResponse {get;}
public read-only property LastFtpResponse: FtpResponse; virtual; 
public function get LastFtpResponse : FtpResponse
public: __property virtual FtpResponse* get_LastFtpResponse();
public:
virtual property FtpResponse^ LastFtpResponse {
   FtpResponse^ 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.CreateDirectory("test");
FtpResponse response = _ftp.LastFtpResponse;
System.Console.WriteLine("Last Response Code: {0}, Full Text Response: {1}", response.Code, response.Text);
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.CreateDirectory("test")
Dim response As FtpResponse = _ftp.LastFtpResponse
System.Console.WriteLine("Last Response Code: {0}, Full Text Response: {1}", response.Code, response.Text)
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