Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentMovingNotification

    Notification that is published before content is moved.

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

    This notification is cancelable, allowing handlers to prevent the move operation. The notification is published by the IContentService before content is moved.

    NOTE: If the target parent is the recycle bin, this notification is never published. Use ContentMovingToRecycleBinNotification instead.

    Constructors

    View Source

    ContentMovingNotification(IEnumerable<MoveEventInfo<IContent>>, EventMessages)

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

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

    The collection of move information for content items being moved.

    EventMessages messages

    The event messages collection.

    View Source

    ContentMovingNotification(MoveEventInfo<IContent>, EventMessages)

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

    Declaration
    public ContentMovingNotification(MoveEventInfo<IContent> target, EventMessages messages)
    Parameters
    Type Name Description
    MoveEventInfo<IContent> target

    The move 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