IHistoryGetVersionSet Method
IT Hit WebDAV Classes Reference
Retrieves all versions of current item.
Namespace: ITHit.WebDAV.Server.DeltaVAssembly: ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 4.5.3121.0
Syntax IEnumerable<IVersion> GetVersionSet(
IList<PropertyName> propNames
)
Function GetVersionSet (
propNames As IList(Of PropertyName)
) As IEnumerable(Of IVersion)
IEnumerable<IVersion^>^ GetVersionSet(
IList<PropertyName>^ propNames
)
abstract GetVersionSet :
propNames : IList<PropertyName> -> IEnumerable<IVersion>
Parameters
- propNames
- Type: System.Collections.GenericIListPropertyName
Names of properties which engine will request from the returned items.
Return Value
Type:
IEnumerableIVersion
.
Exceptions 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