NET SFTP Library
LastFtpCommand Property
Example 






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : LastFtpCommand Property
Return the last FTP Command Attempted.
Syntax
'Declaration
 
Public ReadOnly Property LastFtpCommand As FtpCommand
'Usage
 
Dim instance As SFTP
Dim value As FtpCommand
 
value = instance.LastFtpCommand
public FtpCommand LastFtpCommand {get;}
public read-only property LastFtpCommand: FtpCommand; 
public function get LastFtpCommand : FtpCommand
public: __property FtpCommand* get_LastFtpCommand();
public:
property FtpCommand^ LastFtpCommand {
   FtpCommand^ 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");
FtpCommand cmd = _sftp.LastFtpCommand;
System.Console.WriteLine("Last Command: {0}, Parameters: {1}", cmd.Command, cmd.Param);
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 cmd As FtpCommand = _sftp.LastFtpCommand
System.Console.WriteLine("Last Command: {0}, Parameters: {1}", cmd.Command, cmd.Param)
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