Class EmptyingRecycleBinNotification<T>
Abstract base class for notifications published before the recycle bin is emptied.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class EmptyingRecycleBinNotification<T> : StatefulNotification, IStatefulNotification, ICancelableNotification, INotification where T : class
Type Parameters
| Name | Description |
|---|---|
| T | The type of entities in the recycle bin being deleted. |
Remarks
This notification is cancelable, allowing handlers to prevent the empty recycle bin operation. The notification is published before the entities are permanently deleted.
Constructors
View SourceEmptyingRecycleBinNotification(IEnumerable<T>?, EventMessages)
Initializes a new instance of the EmptyingRecycleBinNotification<T> class.
Declaration
protected EmptyingRecycleBinNotification(IEnumerable<T>? deletedEntities, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | deletedEntities | The collection of entities being permanently deleted. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceCancel
Gets or sets a value indicating whether the operation should be canceled.
Declaration
public bool Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
DeletedEntities
Gets the collection of entities being permanently deleted from the recycle bin.
Declaration
public IEnumerable<T>? DeletedEntities { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<T> |
Messages
Gets the event messages collection associated with this notification.
Declaration
public EventMessages Messages { get; }
Property Value
| Type | Description |
|---|---|
| EventMessages |