Rebex FTP for .NET

Ftp.BeginLogin Method 

Authenticates the user to the FTP server.

public IAsyncResult BeginLogin(
   string userName,
   string password,
   AsyncCallback callback,
   object state
);

Parameters

userName
The username.
password
Password for the given username.
callback
An optional asynchronous callback to be called when the operation is complete.
state
A user-provided object that identifies this particular asynchronous operation.

Return Value

An IAsyncResult that references the asynchronous operation.

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.

See Also

Ftp Class | Rebex.Net Namespace