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