View Source
Interface IContentVersionService
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
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown when culture is invalid.
|
View Source
PerformContentVersionCleanup(DateTime)
Removes historic content versions according to a policy.
Declaration
IReadOnlyCollection<ContentVersionMeta> PerformContentVersionCleanup(DateTime asAtDate)
Parameters
Type |
Name |
Description |
System.DateTime |
asAtDate |
|
Returns
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 |
|