Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeletedVersionsNotification<T>

    Abstract base class for notifications published after versions have been deleted.

    Inheritance
    object
    StatefulNotification
    DeletedVersionsNotificationBase<T>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class DeletedVersionsNotification<T> : DeletedVersionsNotificationBase<T>, IStatefulNotification, INotification where T : class
    Type Parameters
    Name Description
    T

    The type of entity whose versions were deleted.

    Remarks

    This notification is published after versions have been successfully deleted, allowing handlers to react to the deletion for auditing or cache invalidation purposes.

    Constructors

    View Source

    DeletedVersionsNotification(int, EventMessages, int, bool, DateTime)

    Initializes a new instance of the DeletedVersionsNotification<T> class.

    Declaration
    protected DeletedVersionsNotification(int id, EventMessages messages, int specificVersion = 0, bool deletePriorVersions = false, DateTime dateToRetain = default)
    Parameters
    Type Name Description
    int id

    The ID of the entity whose versions were deleted.

    EventMessages messages

    The event messages collection.

    int specificVersion

    The specific version that was deleted, or default if based on other criteria.

    bool deletePriorVersions

    Whether all versions prior to the specified version were deleted.

    DateTime dateToRetain

    The date before which versions were deleted.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX