Class RenamedNotification<T>
Abstract base class for notifications published after entities have been renamed.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class RenamedNotification<T> : EnumerableObjectNotification<T>, IStatefulNotification, INotification
Type Parameters
| Name | Description |
|---|---|
| T | The type of entity that was renamed. |
Remarks
This notification is published after entities have been successfully renamed, allowing handlers to react for auditing or cache invalidation purposes.
Constructors
View SourceRenamedNotification(IEnumerable<T>, EventMessages)
Initializes a new instance of the RenamedNotification<T> class with multiple entities.
Declaration
protected RenamedNotification(IEnumerable<T> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | target | The entities that were renamed. |
| EventMessages | messages | The event messages collection. |
RenamedNotification(T, EventMessages)
Initializes a new instance of the RenamedNotification<T> class with a single entity.
Declaration
protected RenamedNotification(T target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| T | target | The entity that was renamed. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceEntities
Gets the entities that were renamed.
Declaration
public IEnumerable<T> Entities { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<T> |