Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentMovingToRecycleBinNotification

    Notification that is published before content is moved to the recycle bin.

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

    This notification is cancelable, allowing handlers to prevent the move to recycle bin operation. The notification is published by the IContentService when MoveToRecycleBin is called.

    Constructors

    View Source

    ContentMovingToRecycleBinNotification(IEnumerable<MoveToRecycleBinEventInfo<IContent>>, EventMessages)

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

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

    The collection of move to recycle bin information for content items being moved.

    EventMessages messages

    The event messages collection.

    View Source

    ContentMovingToRecycleBinNotification(MoveToRecycleBinEventInfo<IContent>, EventMessages)

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

    Declaration
    public ContentMovingToRecycleBinNotification(MoveToRecycleBinEventInfo<IContent> target, EventMessages messages)
    Parameters
    Type Name Description
    MoveToRecycleBinEventInfo<IContent> target

    The move to recycle bin information for the content item being moved.

    EventMessages messages

    The event messages collection.

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