Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeletingNotification<T>

    Abstract base class for notifications published before entities are deleted.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IEnumerable<T>>
    CancelableObjectNotification<IEnumerable<T>>
    CancelableEnumerableObjectNotification<T>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class DeletingNotification<T> : CancelableEnumerableObjectNotification<T>, IStatefulNotification, ICancelableNotification, INotification
    Type Parameters
    Name Description
    T

    The type of entities being deleted.

    Remarks

    This notification is cancelable, allowing handlers to prevent the delete operation. The notification is published before the entities are removed from the database.

    Constructors

    View Source

    DeletingNotification(IEnumerable<T>, EventMessages)

    Initializes a new instance of the DeletingNotification<T> class with multiple entities.

    Declaration
    protected DeletingNotification(IEnumerable<T> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<T> target

    The collection of entities being deleted.

    EventMessages messages

    The event messages collection.

    View Source

    DeletingNotification(T, EventMessages)

    Initializes a new instance of the DeletingNotification<T> class with a single entity.

    Declaration
    protected DeletingNotification(T target, EventMessages messages)
    Parameters
    Type Name Description
    T target

    The entity being deleted.

    EventMessages messages

    The event messages collection.

    Properties

    View Source

    DeletedEntities

    Gets the collection of entities being deleted.

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