Files
Umbraco-CMS/src/Umbraco.Core/Notifications/ContentDeletingVersionsNotification.cs
Alina-Magdalena Tincas 85747593cc Update v14 api docs with info from umbraco docs (#15977)
* update api docs

* small update
2024-04-11 11:19:23 +02:00

36 lines
1.3 KiB
C#

// Copyright (c) Umbraco.
// See LICENSE for more details.
using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Notifications;
/// <summary>
/// A notification that is used to trigger the IContentService when the DeleteVersion and DeleteVersions methods are called in the API.
/// </summary>
public sealed class ContentDeletingVersionsNotification : DeletingVersionsNotification<IContent>
{
/// <summary>
/// Initializes a new instance of the <see cref="ContentDeletingVersionsNotification"/>.
/// </summary>
/// <param name="id">
/// Gets the ID of the <see cref="IContent"/> object being deleted.
/// </param>
/// <param name="messages">
/// Initializes a new instance of the <see cref="EventMessages"/>.
/// </param>
/// <param name="specificVersion">
/// Gets the id of the IContent object version being deleted.
/// </param>
/// <param name="deletePriorVersions">
/// False by default.
/// </param>
/// <param name="dateToRetain">
/// Gets the latest version date.
/// </param>
public ContentDeletingVersionsNotification(int id, EventMessages messages, int specificVersion = default, bool deletePriorVersions = false, DateTime dateToRetain = default)
: base(id, messages, specificVersion, deletePriorVersions, dateToRetain)
{
}
}