NET SFTP Library
LastFtpResponse Property
Example 






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : LastFtpResponse Property
Return the last FTP Response from the server.
Syntax
'Declaration
 
Public ReadOnly Property LastFtpResponse As FtpResponse
'Usage
 
Dim instance As SFTP
Dim value As FtpResponse
 
value = instance.LastFtpResponse
public FtpResponse LastFtpResponse {get;}
public read-only property LastFtpResponse: FtpResponse; 
public function get LastFtpResponse : FtpResponse
public: __property FtpResponse* get_LastFtpResponse();
public:
property FtpResponse^ LastFtpResponse {
   FtpResponse^ get();
}
Example
SFTP sftp = new SFTP(); //Trial Mode            
//SFTP sftp = new SFTP("place user name here", "place license key here");
 
// set the name of the SSH server( its URL )
sftp.HostAddress = "some.sftp.server.com"; // replace with your SFTP server
sftp.UserName  = "anonymous"; // replace with your user name
sftp.Password = "user@mail.com"; // replace with your password
 
sftp.CreateDirectory("test");
FtpResponse response = _sftp.LastFtpResponse;
System.Console.WriteLine("Last Response Code: {0}, Full Text Response: {1}", response.Code, response.Text);
Dim sftp As SFTP = New SFTP() 'Trial Mode
'Dim sftp As SFTP = New SFTP("place user name here", "place license key here");
 
' set the name of the SSH server( its URL )
sftp.HostAddress = "some.sftp.server.com" ' replace with your SFTP server
sftp.UserName  = "anonymous" ' replace with your user name
sftp.Password = "user@mail.com" ' replace with your password
 
sftp.CreateDirectory("test")
Dim response As FtpResponse = _sftp.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

SFTP Class
SFTP Members