Class MediaEmptyingRecycleBinNotification
Notification published before the media recycle bin is emptied.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaEmptyingRecycleBinNotification : EmptyingRecycleBinNotification<IMedia>, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the recycle bin
from being emptied by setting Cancel to true.
Constructors
View SourceMediaEmptyingRecycleBinNotification(IEnumerable<IMedia>, EventMessages)
Initializes a new instance of the MediaEmptyingRecycleBinNotification class.
Declaration
public MediaEmptyingRecycleBinNotification(IEnumerable<IMedia> deletedEntities, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IMedia> | deletedEntities | The media items that will be permanently deleted. |
| EventMessages | messages | The event messages collection. |