MobileForms Toolkit Documentation

NetFile.Download Method (NetFile, String, NetAsyncCallback, Object)

Downloads the file from remote location represented by "file" object and saves it into local storage

public static NetRequest Download(
NetFile file,
string localPath,
NetAsyncCallback asyncCallback,
object asyncState
);

Parameters

file
A NetFile object representing the source remote file
localPath
The target local storage file path
asyncCallback
The asynchronous callback delegate which is called after the operation completes or fails
asyncState
The asynchronous callback parameter which is set in NetAsyncResult structure when the callback is called.

Return Value

The remote file system request object which can be used to abort the request

See Also

NetFile Class | Resco.Net Namespace | NetFile.Download Overload List