NET SFTP Library
Password Property (SFTP)
Example 






KellermanSoftware.NetSFtpLibrary Namespace > SFTP Class : Password Property
Specifies the password to use while communicating with the FTP Server.
Syntax
'Declaration
 
Public Property Password As System.String
'Usage
 
Dim instance As SFTP
Dim value As System.String
 
instance.Password = value
 
value = instance.Password
public System.string Password {get; set;}
public read-write property Password: System.String; 
public function get,set Password : System.String
public: __property System.string* get_Password();
public: __property void set_Password( 
   System.string* value
);
public:
property System.String^ Password {
   System.String^ get();
   void set (    System.String^ value);
}
Example
SFTP sftp = new SFTP(); //Trial Mode            
//SFTP sftp = new SFTP("place user name here", "place license key here");
 
sftp.Password = "anonymous@johnDoes.com"; // email as password for anonymous users
 
System.Console.WriteLine("The login password  is {0}", sftp.Password);
Dim sftp As SFTP = New SFTP() 'Trial Mode
'Dim sftp As SFTP = New SFTP("place user name here", "place license key here");
 
sftp.Password = "anonymous@johnDoes.com" ' email as password for anonymous users
 
System.Console.WriteLine("The login password  is {0}", sftp.Password)
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