Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentVersionCleanupPolicySettings

    Represents the content version cleanup policy settings for a specific content type.

    Inheritance
    object
    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 Source

    ContentVersionCleanupPolicySettings()

    Declaration
    public ContentVersionCleanupPolicySettings()

    Properties

    View Source

    ContentTypeId

    Gets or sets the identifier of the content type these settings apply to.

    Declaration
    public int ContentTypeId { get; set; }
    Property Value
    Type Description
    int
    View Source

    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 null to use the global default.

    Remarks

    All versions created within this time period will be kept regardless of other settings.

    View Source

    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 null to use the global default.

    Remarks

    After the KeepAllVersionsNewerThanDays period, only one version per day is kept for this duration.

    View Source

    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

    true to prevent automatic cleanup of versions; false to allow cleanup.

    View Source

    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
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX