Class ContentMovingNotification
Notification that is published before content is moved.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentMovingNotification : MovingNotification<IContent>, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the move operation. The notification is published by the IContentService before content is moved.
NOTE: If the target parent is the recycle bin, this notification is never published. Use ContentMovingToRecycleBinNotification instead.
Constructors
View SourceContentMovingNotification(IEnumerable<MoveEventInfo<IContent>>, EventMessages)
Initializes a new instance of the ContentMovingNotification class with multiple content items.
Declaration
public ContentMovingNotification(IEnumerable<MoveEventInfo<IContent>> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MoveEventInfo<IContent>> | target | The collection of move information for content items being moved. |
| EventMessages | messages | The event messages collection. |
ContentMovingNotification(MoveEventInfo<IContent>, EventMessages)
Initializes a new instance of the ContentMovingNotification class with a single content item.
Declaration
public ContentMovingNotification(MoveEventInfo<IContent> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveEventInfo<IContent> | target | The move information for the content item being moved. |
| EventMessages | messages | The event messages collection. |