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