Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaDeletedNotification

    Notification that is published after media has been deleted.

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

    This notification is published by the IMediaService when Delete or EmptyRecycleBin methods complete. It is not cancelable since the delete operation has already completed.

    Constructors

    View Source

    MediaDeletedNotification(IMedia, EventMessages)

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

    Declaration
    public MediaDeletedNotification(IMedia target, EventMessages messages)
    Parameters
    Type Name Description
    IMedia target

    The media item that was deleted.

    EventMessages messages

    The event messages collection.

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