Class MediaMovedToRecycleBinNotification
Notification that is published after media has been moved to the recycle bin.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaMovedToRecycleBinNotification : MovedToRecycleBinNotification<IMedia>, IStatefulNotification, INotification
Remarks
This notification is published by the IMediaService after media has been moved to the recycle bin. It is not cancelable since the operation has already completed.
Constructors
View SourceMediaMovedToRecycleBinNotification(IEnumerable<MoveToRecycleBinEventInfo<IMedia>>, EventMessages)
Initializes a new instance of the MediaMovedToRecycleBinNotification class with multiple media items.
Declaration
public MediaMovedToRecycleBinNotification(IEnumerable<MoveToRecycleBinEventInfo<IMedia>> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MoveToRecycleBinEventInfo<IMedia>> | target | The collection of move to recycle bin information for media items that were moved. |
| EventMessages | messages | The event messages collection. |
MediaMovedToRecycleBinNotification(MoveToRecycleBinEventInfo<IMedia>, EventMessages)
Initializes a new instance of the MediaMovedToRecycleBinNotification class with a single media item.
Declaration
public MediaMovedToRecycleBinNotification(MoveToRecycleBinEventInfo<IMedia> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveToRecycleBinEventInfo<IMedia> | target | The move to recycle bin information for the media item that was moved. |
| EventMessages | messages | The event messages collection. |