Class ContentEmptyingRecycleBinNotification
Notification that is published before the content recycle bin is emptied.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentEmptyingRecycleBinNotification : EmptyingRecycleBinNotification<IContent>, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the empty recycle bin operation. The notification is published by the IContentService when EmptyRecycleBin is called.
Constructors
View SourceContentEmptyingRecycleBinNotification(IEnumerable<IContent>?, EventMessages)
Initializes a new instance of the ContentEmptyingRecycleBinNotification class.
Declaration
public ContentEmptyingRecycleBinNotification(IEnumerable<IContent>? deletedEntities, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IContent> | deletedEntities | The collection of content items being permanently deleted. |
| EventMessages | messages | The event messages collection. |