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