Authenticates the user to the FTP server.

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

Syntax

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

Parameters

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

Return Value

The logon message returned by the remote server.

Remarks

Represents FTP USER/PASS command pair.

For anonymous logins, use "anonymous" as a username and an email as a password.

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