Click or drag to resize

IHierarchyItemDelete Method

IT Hit WebDAV Classes Reference
Deletes this item.

Namespace: ITHit.WebDAV.Server
Assembly: ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 4.5.3121.0
Syntax
void Delete(
	MultistatusException multistatus
)

Parameters

multistatus
Type: ITHit.WebDAV.ServerMultistatusException
If some items fail to delete but operation in whole shall be continued, add information about the error into multistatus using AddInnerException(String, DavException).

Return Value

Type: 
.
Exceptions
ExceptionCondition
LockedExceptionThis item or its parent was locked and client did not provide lock token.
NeedPrivilegesExceptionThe user doesn't have enough privileges.
InsufficientStorageExceptionQuota limit is reached.
MultistatusExceptionErrors has occured during processing of item in the subtree and whole operation shall be aborted.
DavExceptionIn other cases. Possible status value is CONFLICT if destination folder doesn't exist.
Examples
Example of Delete implementation for WebDAV Class 2 server:

The code below is part of 'WebDAVServer.NtfsStorage' sample provided with the SDK.

public override void Delete(MultistatusException multistatus)
{
    RequireHasToken();
    context.FileOperation(
        this,
        () => fileSystemInfo.Delete(),
        Privilege.Unbind);
}
See Also