Class ContentDeletingVersionsNotification
A notification that is used to trigger the IContentService when the DeleteVersion and DeleteVersions methods are called in the API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentDeletingVersionsNotification : DeletingVersionsNotification<IContent>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceContentDeletingVersionsNotification(int, EventMessages, int, bool, DateTime)
Initializes a new instance of the ContentDeletingVersionsNotification.
Declaration
public ContentDeletingVersionsNotification(int id, EventMessages messages, int specificVersion = 0, bool deletePriorVersions = false, DateTime dateToRetain = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | Gets the ID of the IContent object being deleted. |
| EventMessages | messages | Initializes a new instance of the EventMessages. |
| int | specificVersion | Gets the id of the IContent object version being deleted. |
| bool | deletePriorVersions | False by default. |
| DateTime | dateToRetain | Gets the latest version date. |