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