Class ContentMovedNotification
Notification that is published after content has been moved.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentMovedNotification : MovedNotification<IContent>, IStatefulNotification, INotification
Remarks
This notification is published by the IContentService after content 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 ContentMovedToRecycleBinNotification instead.
Constructors
View SourceContentMovedNotification(IEnumerable<MoveEventInfo<IContent>>, EventMessages)
Initializes a new instance of the ContentMovedNotification class with multiple content items.
Declaration
public ContentMovedNotification(IEnumerable<MoveEventInfo<IContent>> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MoveEventInfo<IContent>> | target | The collection of move information for content items that were moved. |
| EventMessages | messages | The event messages collection. |
ContentMovedNotification(MoveEventInfo<IContent>, EventMessages)
Initializes a new instance of the ContentMovedNotification class with a single content item.
Declaration
public ContentMovedNotification(MoveEventInfo<IContent> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveEventInfo<IContent> | target | The move information for the content item that was moved. |
| EventMessages | messages | The event messages collection. |