SocketTools .NET Edition

FtpClient.Login Method (String, String, String)

Login to the remote server.

[Visual Basic]
Overloads Public Function Login( _
   ByVal userName As String, _
   ByVal userPassword As String, _
   ByVal userAccount As String _
) As Boolean
[C#]
public bool Login(
   string userName,
   string userPassword,
   string userAccount
);

Parameters

userName
A string that specifies the name of the user logging into the server.
userPassword
A string that specifies the password used to authenticate the user.
userAccount
A string that specifies the account name to be used when authenticating the user.

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

The Login method identifies the user to the remote server. If the user name or password is invalid, an error will occur. By default, when a connection is established, the UserName, Password and Account properties are used to automatically log the user in to the server. This method is typically used if you wish to log in as another user during the same session.

See Also

FtpClient Class | SocketTools Namespace | FtpClient.Login Overload List