CimTable.RetainRecordCount (property)

Specifies the number of records to retain in the table while purging the rest as a maintenance action.
Syntax: VARIANT = object.RetainRecordCount
object.RetainRecordCount = VARIANT
Description: CimTable.RetainRecordCount is a variant representing the number of database entries to retain in the database when a maintenance action occurrs. The rest of the entries that are not retained are purged. This property and CimTable.RetainRecordTime can not be used simultaneously.


When the space on drive D: slips below 200MB, it is desired to retain only the last 500 data entries collected.

myTable.LowSpaceTriggerDrive = "D:"
myTable.LowSpaceTriggerAmount = 200
CimTable.RetainRecoudCount = 500