Click or drag to resize
VersionManagerDeleteOlderVersions Method
Deletes older document versions to keep specified version history length.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax
C#
public void DeleteOlderVersions(
	int documentId,
	string siteName
)

Parameters

documentId
Type: SystemInt32
Document ID
siteName
Type: SystemString
Site name

Return Value

Type: 
Returns the version number of the last deleted version
See Also