Namespace: ITHit.WebDAV.Server.DeltaV
Exception | Condition |
---|---|
NeedPrivilegesException | The user doesn't have enough privileges. |
DavException | In other cases. |
The code below is part of 'WebDAVServer.DeltaV' sample provided with the SDK.
public IVersion GetRootVersion() { string command = @"SELECT VersionId, ItemId, VersionNumber, Name, Created, SerialNumber FROM Version WHERE ItemId = @ItemId AND VersionNumber = (SELECT MIN(VersionNumber) FROM Version WHERE ItemId = @ItemId)"; return context.ExecuteVersion( path.Remove(path.IndexOf('?')), command, "@ItemId", itemId).FirstOrDefault(); }