Ftp.LoginAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.8816)
LoginAsync(String, String, String, Object)
Begins asynchronous Login operation. Authenticates the user to the FTP server.
Declaration
public Task<string> LoginAsync(string userName, string password, string account, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | userName | The username. |
String | password | Password for the given username. |
String | account | Account for the given username. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<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.
LoginAsync(String, String, Object)
Begins asynchronous Login operation. Authenticates the user to the FTP server.
Declaration
public Task<string> LoginAsync(string userName, string password, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | userName | The username. |
String | password | Password for the given username. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<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.