Class MediaDeletedNotification
Notification that is published after media has been deleted.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaDeletedNotification : DeletedNotification<IMedia>, IStatefulNotification, INotification
Remarks
This notification is published by the IMediaService when Delete or EmptyRecycleBin methods complete. It is not cancelable since the delete operation has already completed.
Constructors
View SourceMediaDeletedNotification(IMedia, EventMessages)
Initializes a new instance of the MediaDeletedNotification class with a single media item.
Declaration
public MediaDeletedNotification(IMedia target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IMedia | target | The media item that was deleted. |
| EventMessages | messages | The event messages collection. |