Class ContentDeletedVersionsNotification
A notification that is used to trigger the IContentService when the DeleteVersion and DeleteVersions methods are called in the API, and the version has been deleted.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentDeletedVersionsNotification : DeletedVersionsNotification<IContent>, IStatefulNotification, INotification
Constructors
View SourceContentDeletedVersionsNotification(int, EventMessages, int, bool, DateTime)
Initializes a new instance of the ContentDeletedVersionsNotification.
Declaration
public ContentDeletedVersionsNotification(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. |