Namespace: ITHit.WebDAV.Server
Task DeleteAsync( MultistatusException multistatus ) Task DeleteAsync( MultistatusException multistatus )
Exception | Condition |
---|---|
LockedException | This item or its parent was locked and client did not provide lock token. |
NeedPrivilegesException | The user doesn't have enough privileges. |
InsufficientStorageException | Quota limit is reached. |
MultistatusException | Errors has occured during processing of item in the subtree and whole operation shall be aborted. |
DavException | In other cases. Possible status value is CONFLICT if destination folder doesn't exist. |
The code below is part of 'WebDAVServer.FileSystemStorage.AspNet' C# & VB samples provided with the SDK.
public override async Task DeleteAsync(MultistatusException multistatus) { await RequireHasTokenAsync(); if (FileSystemInfoExtension.IsUsingFileSystemAttribute) { await fileSystemInfo.DeleteExtendedAttributes(); } fileSystemInfo.Delete(); await context.socketService.NotifyDeletedAsync(Path); }