ComponentSpace FTP Class Library Reference

FailSafeTransfer.BeginUpload Method (String, String)

Initiates an asynchronous upload remote file.

[Visual Basic]
Overloads Public Function BeginUpload( _
   ByVal sourcePathName As String, _
   ByVal destinationPathName As String _
) As IAsyncResult
[C#]
public IAsyncResult BeginUpload(
   string sourcePathName,
   string destinationPathName
);

Parameters

sourcePathName
The local file name.
destinationPathName
The remote file name or null.

Return Value

The IAsyncResult that identifies the posted asynchronous request.

Remarks

In asynchronous processing, you use BeginUpload to raise the UploadCompleted event when the upload has completed. You complete the operation by calling EndUpload.

See Also

FailSafeTransfer Class | ComponentSpace.Ftp Namespace | FailSafeTransfer.BeginUpload Overload List