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