DavItem.CopyToAsync Method

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

CopyToAsync(IItemCollectionAsync, String, Boolean, MultistatusException)

Creates a copy of this item with a new name in the destination folder.

If error occurred while copying file located in a subtree, the server should try to continue copy operation and copy all other items. In this case you must add that error multistatus container.

A CopyTo method invocation must not copy any locks active on the source item. However, if this method copies the item into a folder that has a deep lock, then the destination item must be added to the lock.

public abstract Task CopyToAsync(IItemCollectionAsync destFolder, string destName, bool deep, MultistatusException multistatus)

Parameters

destFolder
ITHit.WebDAV.Server.IItemCollectionAsync
destName
System.String
deep
System.Boolean
multistatus
ITHit.WebDAV.Server.MultistatusException

Returns

System.Threading.Tasks.Task