Class DeletedVersionsNotification<T>
Abstract base class for notifications published after versions have been deleted.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class DeletedVersionsNotification<T> : DeletedVersionsNotificationBase<T>, IStatefulNotification, INotification where T : class
Type Parameters
| Name | Description |
|---|---|
| T | The type of entity whose versions were deleted. |
Remarks
This notification is published after versions have been successfully deleted, allowing handlers to react to the deletion for auditing or cache invalidation purposes.
Constructors
View SourceDeletedVersionsNotification(int, EventMessages, int, bool, DateTime)
Initializes a new instance of the DeletedVersionsNotification<T> class.
Declaration
protected DeletedVersionsNotification(int id, EventMessages messages, int specificVersion = 0, bool deletePriorVersions = false, DateTime dateToRetain = default)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The ID of the entity whose versions were deleted. |
| EventMessages | messages | The event messages collection. |
| int | specificVersion | The specific version that was deleted, or default if based on other criteria. |
| bool | deletePriorVersions | Whether all versions prior to the specified version were deleted. |
| DateTime | dateToRetain | The date before which versions were deleted. |