NET FTP Library
Password Property (FTP)
Example 






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

FTP Class
FTP Members