Class SavingNotification<T>
Abstract base class for notifications published before entities are saved.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class SavingNotification<T> : CancelableEnumerableObjectNotification<T>, IStatefulNotification, ICancelableNotification, INotification
Type Parameters
| Name | Description |
|---|---|
| T | The type of entities being saved. |
Remarks
This notification is cancelable, allowing handlers to prevent the save operation. The notification is published before the entities are persisted to the database.
Constructors
View SourceSavingNotification(IEnumerable<T>, EventMessages)
Initializes a new instance of the SavingNotification<T> class with multiple entities.
Declaration
protected SavingNotification(IEnumerable<T> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | target | The collection of entities being saved. |
| EventMessages | messages | The event messages collection. |
SavingNotification(T, EventMessages)
Initializes a new instance of the SavingNotification<T> class with a single entity.
Declaration
protected SavingNotification(T target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| T | target | The entity being saved. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceSavedEntities
Gets the collection of entities being saved.
Declaration
public IEnumerable<T> SavedEntities { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<T> |