Class MovingToRecycleBinNotification<T>
Abstract base class for notifications published before entities are moved to the recycle bin.
Inheritance
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class MovingToRecycleBinNotification<T> : CancelableObjectNotification<IEnumerable<MoveToRecycleBinEventInfo<T>>>, IStatefulNotification, ICancelableNotification, INotification
Type Parameters
| Name | Description |
|---|---|
| T | The type of entities being moved to the recycle bin. |
Remarks
This notification is cancelable, allowing handlers to prevent the move to recycle bin operation. The notification is published before the entities are moved.
Constructors
View SourceMovingToRecycleBinNotification(IEnumerable<MoveToRecycleBinEventInfo<T>>, EventMessages)
Initializes a new instance of the MovingToRecycleBinNotification<T> class with multiple move operations.
Declaration
protected MovingToRecycleBinNotification(IEnumerable<MoveToRecycleBinEventInfo<T>> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MoveToRecycleBinEventInfo<T>> | target | The collection of move to recycle bin information for entities being moved. |
| EventMessages | messages | The event messages collection. |
MovingToRecycleBinNotification(MoveToRecycleBinEventInfo<T>, EventMessages)
Initializes a new instance of the MovingToRecycleBinNotification<T> class with a single move operation.
Declaration
protected MovingToRecycleBinNotification(MoveToRecycleBinEventInfo<T> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveToRecycleBinEventInfo<T> | target | The move to recycle bin information for the entity being moved. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceMoveInfoCollection
Gets an enumeration of MoveToRecycleBinEventInfo<TEntity> with the entities being moved to the recycle bin.
Declaration
public IEnumerable<MoveToRecycleBinEventInfo<T>> MoveInfoCollection { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<MoveToRecycleBinEventInfo<T>> |