Rebex FTP for .NET

Ftp.BeginGetFile Method (String, String, AsyncCallback, Object)

Downloads the remote file to the local file.

public IAsyncResult BeginGetFile(
   string remotePath,
   string localPath,
   AsyncCallback callback,
   object state
);

Parameters

remotePath
The path of the remote file.
localPath
The path of the local file. This cannot be a directory.
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

The path parameter can specify either relative or absolute path. Relative path is interpreted as relative to the current working directory. To obtain the current working directory, see GetCurrentDirectory.

If the specified file does not exist, it is created; if it does exist, it is truncated and overwritten.

See Also

Ftp Class | Rebex.Net Namespace | Ftp.BeginGetFile Overload List