Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Ftp.Login Method

Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9448)

Login(String, String, String)

Authenticates the user to the FTP server.

Declaration
public string Login(string userName, string password, string account)
Parameters
Type Name Description
String userName

The username.

String password

Password for the given username.

String account

Account for the given username.

Returns
Type Description
String

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.

Login(String, String)

Authenticates the user to the FTP server.

Declaration
public string Login(string userName, string password)
Parameters
Type Name Description
String userName

The username.

String password

Password for the given username.

Returns
Type Description
String

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.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies