Class ContentVersionCleanupPolicySettings
Represents the content version cleanup policy settings for a specific content type.
Inheritance
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class ContentVersionCleanupPolicySettings
Remarks
These settings control how historical content versions are cleaned up to manage database size. Each content type can have its own cleanup policy.
Constructors
View SourceContentVersionCleanupPolicySettings()
Declaration
public ContentVersionCleanupPolicySettings()
Properties
View SourceContentTypeId
Gets or sets the identifier of the content type these settings apply to.
Declaration
public int ContentTypeId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
KeepAllVersionsNewerThanDays
Gets or sets the number of days to keep all versions.
Declaration
public int? KeepAllVersionsNewerThanDays { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | The number of days during which all versions are retained, or |
Remarks
All versions created within this time period will be kept regardless of other settings.
KeepLatestVersionPerDayForDays
Gets or sets the number of days to keep the latest version per day.
Declaration
public int? KeepLatestVersionPerDayForDays { get; set; }
Property Value
| Type | Description |
|---|---|
| int? | The number of days during which only the latest version per day is retained, or |
Remarks
After the KeepAllVersionsNewerThanDays period, only one version per day is kept for this duration.
PreventCleanup
Gets or sets a value indicating whether version cleanup should be prevented for this content type.
Declaration
public bool PreventCleanup { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Updated
Gets or sets the date and time when these settings were last updated.
Declaration
public DateTime Updated { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |