DavFolder.CreateFileAsync Method

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

CreateFileAsync(string)

Creates new WebDAV file with the specified name in this folder.

You must create a file in your repository during this call. After calling this method Engine calls ITHit.WebDAV.Server.IContentAsync.WriteAsync(System.IO.Stream%2cSystem.String%2cSystem.Int64%2cSystem.Int64).

public Task<IFileAsync> CreateFileAsync(string name)

Parameters

name
string

Name of the file to create.

Returns

System.Threading.Tasks.Task

Instance of ITHit.WebDAV.Server.Class1.IFileAsync referring to newly created file.