MobileForms Toolkit Documentation

WebDavFile.Upload Method (Stream, String, NetAsyncCallback, Object)

Uploads the content of the stream into a WebDAV location represented by this object

public override NetRequest Upload(
Stream stream,
string name,
NetAsyncCallback asyncCallback,
object asyncState
);

Parameters

stream
The source stream
name
The target file name
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 object does not represent a WebDavFile directory

See Also

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