DeleteVersionRange
Purpose
DeleteVersionRange deletes one or more versions of an object from the MDS Repository database. The user must have delete permission on the versions to be deleted. startVersion provides the first version in the range to be deleted; it must have a value greater than zero. If startVersion is less than one or exceeds the highest numbered version for the object, an error will be returned. endVersion indicates the last version in the range to be deleted. If endVersion is not provided, all versions from startVersion through the highest numbered version for the object will be deleted. If endVersion is greater than the highest numbered version, the highest numbered version will be assumed.
Requirements
The internal object id must be set in the object and it must be for a version of the object. The version represented by the internal object id need not be in the range of startVersion to endVersion.
Syntax
HRESULT DeleteVersionRange(
const VERSIONNUMBER_t startVersion,
const VERSIONNUMBER_t endVersion = -1);
Argument |
In/Out |
Description |
startVersion |
In |
The first version to be deleted |
endVersion |
In |
The last version to be deleted |