edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Password of account on the server.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 8.0.0.20

Syntax

C#
public override string Password { get; set; }
Visual Basic
Public Overrides Property Password As String
	Get
	Set
Visual C++
public:
virtual property String^ Password {
	String^ get () override;
	void set (String^ value) override;
}

Field Value

The password of the account the server that will be logged into upon connection.

Remarks

This property must be set before a connection with the server is made.

Examples

The following example illustrates an SFTP client connecting to a server using simple password authentication but no server validation:
 Copy imageCopy
              SecureFTPConnection ftp = new SecureFTPConnection();
              ftp.Protocol = FileTransferProtocol.SFTP;
              ftp.ServerAddress = "my-server-name";
              ftp.UserName = "my-username";
              ftp.Password = "my-password";
              ftp.AuthenticationMethod = AuthenticationType.Password;
              ftp.ServerValidation = SecureFTPServerValidationType.None;
              ftp.Connect();
              ftp.Close();
            

See Also