|
Summary
This is the Password used while connecting to the server.
Description
The Password property is used during the login process to the server. Most FTP servers require both a user name and a correct password before a session can be established. Before connecting
to a server, the application must also set the User property to the correct user name.
For security reasons, both the user name and the password are usually obtained from the user just before a connection is established. If security is not an important issue and the application will
always connect to the same FTP server with the same user name and password, then these two properties can be set at design time.
For additional security, the FTP service may reside on a port other than the default port 21. If the application prompts the user for a user name and a password, then adding a field to allow the user
to enter an FTP service port should be provided. Please check the reference page of the Port property for more details.
Usually for accounting purposes, some FTP servers require the user to enter an account name along with the user name and the password. If the application prompts the user for a user name and a
password, then adding a field to allow the user to enter an account name should be provided. Please check the reference page of the Account property for more details.
This property can be changed at design time and at run time before a connection has been established. There is no default value for this property.
Example
FTPClient.Host = "speedy" FTPClient.User = "santa" FTPClient.Password = "north pole" FTPClient.Account = ""
FTPClient.Action = ACTION_CONNECT
Note
When using the Connect or FwConnect methods the password is set through the password parameter.
|