Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentDeletingNotification

    Notification that is published before content is deleted.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IEnumerable<IContent>>
    CancelableObjectNotification<IEnumerable<IContent>>
    CancelableEnumerableObjectNotification<IContent>
    DeletingNotification<IContent>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class ContentDeletingNotification : DeletingNotification<IContent>, IStatefulNotification, ICancelableNotification, INotification
    Remarks

    This notification is cancelable, allowing handlers to prevent the delete operation. The notification is published by the IContentService when DeleteContentOfType, Delete, or EmptyRecycleBin methods are called.

    Constructors

    View Source

    ContentDeletingNotification(IEnumerable<IContent>, EventMessages)

    Initializes a new instance of the ContentDeletingNotification class with multiple content items.

    Declaration
    public ContentDeletingNotification(IEnumerable<IContent> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<IContent> target

    The collection of content items being deleted.

    EventMessages messages

    The event messages collection.

    View Source

    ContentDeletingNotification(IContent, EventMessages)

    Initializes a new instance of the ContentDeletingNotification class with a single content item.

    Declaration
    public ContentDeletingNotification(IContent target, EventMessages messages)
    Parameters
    Type Name Description
    IContent target

    The content item being deleted.

    EventMessages messages

    The event messages collection.

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