Authenticates the user to the FTP server. This method cannot be used with SFTP protocol.

Namespace:  Rebex.Net
Assembly:  Rebex.FileTransfer (in Rebex.FileTransfer.dll)

Syntax

Visual Basic
Public Sub Login ( _
	userName As String, _
	password As String, _
	account As String _
)
C#
public void Login(
	string userName,
	string password,
	string account
)

Parameters

userName
Type: System..::..String
The username.
password
Type: System..::..String
Password for the given username.
account
Type: System..::..String
Account for the given username.

Return Value

The logon message returned by the remote server.

Remarks

Represents FTP USER/PASS/ACCT command triplet.

For anonymous logins, use "anonymous" as a username and an email as a password (and no account).

If userName is a null reference, "anonymous" is used. If password is a null reference, "guest" is used.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also