Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IContentVersionService

    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IContentVersionService

    Methods

    View Source

    GetPagedContentVersions(Int32, Int64, Int32, out Int64, String)

    Gets paginated content versions for given content id paginated.

    Declaration
    IEnumerable<ContentVersionMeta>? GetPagedContentVersions(int contentId, long pageIndex, int pageSize, out long totalRecords, string culture = null)
    Parameters
    Type Name Description
    System.Int32 contentId
    System.Int64 pageIndex
    System.Int32 pageSize
    System.Int64 totalRecords
    System.String culture
    Returns
    Type Description
    System.Nullable<IEnumerable<ContentVersionMeta>>
    View Source

    PerformContentVersionCleanup(DateTime)

    Removes historic content versions according to a policy.

    Declaration
    IReadOnlyCollection<ContentVersionMeta> PerformContentVersionCleanup(DateTime asAtDate)
    Parameters
    Type Name Description
    DateTime asAtDate
    Returns
    Type Description
    IReadOnlyCollection<ContentVersionMeta>
    View Source

    SetPreventCleanup(Int32, Boolean, Int32)

    Updates preventCleanup value for given content version.

    Declaration
    void SetPreventCleanup(int versionId, bool preventCleanup, int userId = -1)
    Parameters
    Type Name Description
    System.Int32 versionId
    System.Boolean preventCleanup
    System.Int32 userId
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetPagedContentVersions(Int32, Int64, Int32, out Int64, String)
      • PerformContentVersionCleanup(DateTime)
      • SetPreventCleanup(Int32, Boolean, Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX