Class DeletedNotification<T>
Abstract base class for notifications published after entities have been deleted.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class DeletedNotification<T> : EnumerableObjectNotification<T>, IStatefulNotification, INotification
Type Parameters
| Name | Description |
|---|---|
| T | The type of entities that were deleted. |
Remarks
This notification is published after the entities have been removed from the database. It is not cancelable since the delete operation has already completed.
Constructors
View SourceDeletedNotification(IEnumerable<T>, EventMessages)
Initializes a new instance of the DeletedNotification<T> class with multiple entities.
Declaration
protected DeletedNotification(IEnumerable<T> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | target | The collection of entities that were deleted. |
| EventMessages | messages | The event messages collection. |
DeletedNotification(T, EventMessages)
Initializes a new instance of the DeletedNotification<T> class with a single entity.
Declaration
protected DeletedNotification(T target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| T | target | The entity that was deleted. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceDeletedEntities
Gets the collection of entities that were deleted.
Declaration
public IEnumerable<T> DeletedEntities { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<T> |