Ftp.Login Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.8816)
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.