Search Results for

    Show / Hide Table of Contents
    View Source

    Class EmptyingRecycleBinNotification<T>

    Abstract base class for notifications published before the recycle bin is emptied.

    Inheritance
    object
    StatefulNotification
    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 Source

    EmptyingRecycleBinNotification(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 Source

    Cancel

    Gets or sets a value indicating whether the operation should be canceled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    bool

    true if the operation should be canceled; otherwise, false.

    View Source

    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>
    View Source

    Messages

    Gets the event messages collection associated with this notification.

    Declaration
    public EventMessages Messages { get; }
    Property Value
    Type Description
    EventMessages
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX