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

    Get(int)

    Declaration
    ContentVersionMeta? Get(int versionId)
    Parameters
    Type Name Description
    int versionId
    Returns
    Type Description
    ContentVersionMeta
    View Source

    GetAsync(Guid)

    Declaration
    Task<Attempt<IContent?, ContentVersionOperationStatus>> GetAsync(Guid versionId)
    Parameters
    Type Name Description
    Guid versionId
    Returns
    Type Description
    Task<Attempt<IContent, ContentVersionOperationStatus>>
    View Source

    GetPagedContentVersionsAsync(Guid, string?, int, int)

    Declaration
    Task<Attempt<PagedModel<ContentVersionMeta>?, ContentVersionOperationStatus>> GetPagedContentVersionsAsync(Guid contentId, string? culture, int skip, int take)
    Parameters
    Type Name Description
    Guid contentId
    string culture
    int skip
    int take
    Returns
    Type Description
    Task<Attempt<PagedModel<ContentVersionMeta>, ContentVersionOperationStatus>>
    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

    RollBackAsync(Guid, string?, Guid)

    Declaration
    Task<Attempt<ContentVersionOperationStatus>> RollBackAsync(Guid versionId, string? culture, Guid userKey)
    Parameters
    Type Name Description
    Guid versionId
    string culture
    Guid userKey
    Returns
    Type Description
    Task<Attempt<ContentVersionOperationStatus>>
    View Source

    SetPreventCleanupAsync(Guid, bool, Guid)

    Declaration
    Task<Attempt<ContentVersionOperationStatus>> SetPreventCleanupAsync(Guid versionId, bool preventCleanup, Guid userKey)
    Parameters
    Type Name Description
    Guid versionId
    bool preventCleanup
    Guid userKey
    Returns
    Type Description
    Task<Attempt<ContentVersionOperationStatus>>
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX