MobileForms Toolkit Documentation

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

Uploads the local file from local storage to a remote location represented by remoteDir object

public static NetRequest Upload(
NetFile remoteDir,
string localFile,
NetAsyncCallback asyncCallback,
object asyncState
);

Parameters

remoteDir
A NetFile object representing the target remote directory
localFile
The 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

Exceptions

Exception Type Condition
NotSupportedException The remoteDir object does not represent a NetFile directory

See Also

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