DavFile.WriteAsync Method

Namespace:
Weavy.Web.WebDAV
Assembly:
Weavy.Web.dll

WriteAsync(Stream, string, long, long)

Saves the content of the file from the specified stream to the WebDAV repository.

public Task<bool> WriteAsync(Stream content, string contentType, long startIndex, long totalLength)

Parameters

content
System.IO.Stream

Stream to read the content of the file from.

contentType
string

Indicates the media type of the file.

startIndex
long

Start offset to which content shall be saved.

totalLength
long

Entire length of the file. It is not less then length of content stream.

Returns

System.Threading.Tasks.Task

Boolean value indicating whether entire stream was written. This value is used by engine to take decision whether autocheckin shall be performed.