Click or drag to resize

IHistoryGetVersionSet Method

IT Hit WebDAV Classes Reference
Retrieves all versions of current item.

Namespace: ITHit.WebDAV.Server.DeltaV
Assembly: ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 4.5.3121.0
Syntax
IEnumerable<IVersion> GetVersionSet(
	IList<PropertyName> propNames
)

Parameters

propNames
Type: System.Collections.GenericIListPropertyName
Names of properties which engine will request from the returned items.

Return Value

Type: IEnumerableIVersion
.
Exceptions
ExceptionCondition
NeedPrivilegesExceptionThe user doesn't have enough privileges.
DavExceptionIn other cases.
Examples

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

public IEnumerable<IVersion> GetVersionSet(IList<PropertyName> propNames)
{
    string command = 
        @"SELECT VersionId, ItemId, VersionNumber, Name, Created, SerialNumber
          FROM Version
          WHERE ItemId = @ItemId";

    return context.ExecuteVersion(
        path.Remove(path.IndexOf('?')),
        command,
        "@ItemId", itemId);
}
See Also