Namespace: ITHit.WebDAV.Server.Class1
| Exception | Condition | 
|---|---|
| LockedException | This folder was locked. Client did not provide the lock token. | 
| NeedPrivilegesException | The user doesn't have enough privileges. | 
| InsufficientStorageException | Quota limit is reached. | 
| DavException | In other cases. | 
The code below is part of 'WebDAVServer.NtfsStorage' sample provided with the SDK.
public IFile CreateFile(string name) { RequireHasToken(); string fileName = System.IO.Path.Combine(fileSystemInfo.FullName, name); context.FileOperation( this, () => new FileStream(fileName, FileMode.CreateNew).Dispose(), Privilege.Bind); return (IFile) context.GetHierarchyItem(Path + EncodeUtil.EncodeUrlPart(name)); }