Initiates an asynchronous connect using the default command port 21 and that has a specified state object. This overload receives notification, through a callback, of the identity of the event handler for this operation.
AsyncCallback that will receive the notification of the asynchronous operation completion.The IAsyncResult that identifies the posted asynchronous request.
When you use this overload, the callback specified in the callback parameter is invoked directly when the connect has completed; the ConnectCompleted event is not raised. The other overloads of BeginConnect rely on this component to raise the ConnectCompleted event.
FtpClient Class | ComponentSpace.Ftp Namespace | FtpClient.BeginConnect Overload List