ComponentSpace FTP Class Library Reference

FtpClient.BeginConnect Method (String, String, String)

Initiates an asynchronous connect using the default command port 21.

[Visual Basic]
Overloads Public Function BeginConnect( _
   ByVal serverAddress As String, _
   ByVal userName As String, _
   ByVal password As String _
) As IAsyncResult
[C#]
public IAsyncResult BeginConnect(
   string serverAddress,
   string userName,
   string password
);

Parameters

serverAddress
The server address (eg. 207.46.133.140 or ftp.microsoft.com).
userName
The user name. "anonymous" for an anonymous user.
password
The password. Normally your email address for an anonymous user.

Return Value

The IAsyncResult that identifies the posted asynchronous request.

Remarks

In asynchronous processing, you use BeginConnect to raise the ConnectCompleted event when the connect has completed. You complete the operation by calling EndConnect.

See Also

FtpClient Class | ComponentSpace.Ftp Namespace | FtpClient.BeginConnect Overload List