Namespace: ITHit.WebDAV.Client
The IItemContentAsync type exposes the following members.
Name | Description | |
---|---|---|
ContentLength |
Length of the file content.
| |
ContentType |
Content type of the file.
| |
Etag |
Gets entity tag - string that identifies current state of file's content.
| |
ResumableUpload |
Returns instance of IResumableUploadAsync to manage partially failed uploads.
|
Name | Description | |
---|---|---|
DownloadAsync |
Downloads content of the file to a file specified by filename | |
GetReadStreamAsync |
Loads content of the file from WebDAV server.
| |
GetReadStreamAsync(Int64, Int64) |
Loads part of the content of the file from WebDAV server.
| |
GetReadStreamAsync(Int64, Int64, DateTime) |
Loads part of the content of the file from WebDAV server using lastModifiedUtc
to ensure the content is up-to-date.
| |
GetReadStreamAsync(Int64, Int64, String) |
Loads part of the content of the file from WebDAV server using eTag to
ensure the content is up-to-date.
| |
GetWriteStreamAsync(Int64) |
Saves file's content to WebDAV server.
| |
GetWriteStreamAsync(String, Int64) |
Saves file's content to WebDAV server.
| |
GetWriteStreamAsync(String, Int64, String) |
Saves files's content to WebDAV server.
| |
UploadAsync(String) |
Uploads content of a file specified by filename to the server
| |
UploadAsync(String, String) |
Uploads content of a file specified by filename to the server
|
string license = "<?xml version='1.0' encoding='utf... WebDavSessionAsync session = new WebDavSessionAsync(license); session.Credentials = new NetworkCredential("User1", "pwd"); IFolderAsync folder = await session.OpenFolderAsync(new Uri("http://server:8080/Sales")); IFileAsync file = await folder.CreateFileAsync("products.xlsx"); file.AllowWriteStreamBuffering = false; file.TimeOut = 36000000; // 10 hours await file.UploadAsync("C:\\products.xlsx");
string license = "<?xml version='1.0' encoding='utf... WebDavSessionAsync session = new WebDavSessionAsync(license); session.Credentials = new NetworkCredential("User1", "pwd"); IFileAsync file = await session.OpenFileAsync(new Uri("http://server:8080/Products/image.gif")); file.TimeOut = 36000000; // 10 hours await file.DownloadAsync("C:\\image.gif");