Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaSavedNotification

    Notification that is published after media has been saved.

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

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

    Constructors

    View Source

    MediaSavedNotification(IEnumerable<IMedia>, EventMessages)

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

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

    The collection of media items that were saved.

    EventMessages messages

    The event messages collection.

    View Source

    MediaSavedNotification(IMedia, EventMessages)

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

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

    The media item that was saved.

    EventMessages messages

    The event messages collection.

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