View Source
Class UpdatePreventCleanupDocumentVersionController
Inheritance
System.Object
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class UpdatePreventCleanupDocumentVersionController : DocumentVersionControllerBase
Constructors
View Source
UpdatePreventCleanupDocumentVersionController(IContentVersionService, IBackOfficeSecurityAccessor)
Declaration
public UpdatePreventCleanupDocumentVersionController(IContentVersionService contentVersionService, IBackOfficeSecurityAccessor backOfficeSecurityAccessor)
Parameters
| Type |
Name |
Description |
| IContentVersionService |
contentVersionService |
|
| IBackOfficeSecurityAccessor |
backOfficeSecurityAccessor |
|
Methods
View Source
Set(CancellationToken, Guid, Boolean)
Declaration
public async Task<IActionResult> Set(CancellationToken cancellationToken, Guid id, bool preventCleanup)
Parameters
| Type |
Name |
Description |
| CancellationToken |
cancellationToken |
|
| Guid |
id |
|
| System.Boolean |
preventCleanup |
|
Returns
| Type |
Description |
| Task<IActionResult> |
|