Class HistoryCleanup
Represents the history cleanup settings for content versions.
Namespace: Umbraco.Cms.Core.Models.ContentEditing
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "historyCleanup", Namespace = "")]
public class HistoryCleanup : BeingDirtyBase, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceHistoryCleanup()
Declaration
public HistoryCleanup()
Properties
View SourceKeepAllVersionsNewerThanDays
Gets or sets the number of days to keep all versions of this content.
Declaration
[DataMember(Name = "keepAllVersionsNewerThanDays")]
public int? KeepAllVersionsNewerThanDays { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
KeepLatestVersionPerDayForDays
Gets or sets the number of days to keep the latest version per day for this content.
Declaration
[DataMember(Name = "keepLatestVersionPerDayForDays")]
public int? KeepLatestVersionPerDayForDays { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
PreventCleanup
Gets or sets a value indicating whether to prevent automatic history cleanup for this content.
Declaration
[DataMember(Name = "preventCleanup")]
public bool PreventCleanup { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |