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