Class ElementDeletingVersionsNotification
A notification that is used to trigger the IElementService 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 ElementDeletingVersionsNotification : DeletingVersionsNotification<IElement>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceElementDeletingVersionsNotification(int, EventMessages, int, bool, DateTime)
Initializes a new instance of the ElementDeletingVersionsNotification.
Declaration
public ElementDeletingVersionsNotification(int id, EventMessages messages, int specificVersion = 0, bool deletePriorVersions = false, DateTime dateToRetain = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | Gets the ID of the IElement object being deleted. |
| EventMessages | messages | Initializes a new instance of the EventMessages. |
| int | specificVersion | Gets the id of the IElement object version being deleted. |
| bool | deletePriorVersions | False by default. |
| DateTime | dateToRetain | Gets the latest version date. |