Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaMovedNotification

    Notification that is published after media has been moved.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IEnumerable<MoveEventInfo<IMedia>>>
    MovedNotification<IMedia>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class MediaMovedNotification : MovedNotification<IMedia>, IStatefulNotification, INotification
    Remarks

    This notification is published by the IMediaService after media has been moved. It is not cancelable since the move operation has already completed.

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

    Constructors

    View Source

    MediaMovedNotification(IEnumerable<MoveEventInfo<IMedia>>, EventMessages)

    Initializes a new instance of the MediaMovedNotification class with multiple media items.

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

    The collection of move information for media items that were moved.

    EventMessages messages

    The event messages collection.

    View Source

    MediaMovedNotification(MoveEventInfo<IMedia>, EventMessages)

    Initializes a new instance of the MediaMovedNotification class with a single media item.

    Declaration
    public MediaMovedNotification(MoveEventInfo<IMedia> target, EventMessages messages)
    Parameters
    Type Name Description
    MoveEventInfo<IMedia> target

    The move information for the media item that was moved.

    EventMessages messages

    The event messages collection.

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