Class MediaMovedNotification
A notification that is used to trigger the IMediaService when the Move method is called in the API. The event is fired after the media object has been moved. NOTE: If the target parent is the Recycle bin, this notification is never published. Try the MediaMovedToRecycleBinNotification instead.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaMovedNotification : MovedNotification<IMedia>, IStatefulNotification, INotification
Constructors
View SourceMediaMovedNotification(IEnumerable<MoveEventInfo<IMedia>>, EventMessages)
Declaration
public MediaMovedNotification(IEnumerable<MoveEventInfo<IMedia>> target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<MoveEventInfo<IMedia>> | target | |
EventMessages | messages |
MediaMovedNotification(MoveEventInfo<IMedia>, EventMessages)
Declaration
public MediaMovedNotification(MoveEventInfo<IMedia> target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
MoveEventInfo<IMedia> | target | |
EventMessages | messages |