Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaTypeChangedNotification

    A notification that is published when a MediaType is saved or deleted, after the transaction has completed. This is mainly used for caching purposes, and generally not recommended. Use MediaTypeSavedNotification and MediaTypeDeletedNotification instead.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IEnumerable<ContentTypeChange<IMediaType>>>
    EnumerableObjectNotification<ContentTypeChange<IMediaType>>
    ContentTypeChangeNotification<IMediaType>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public class MediaTypeChangedNotification : ContentTypeChangeNotification<IMediaType>, IStatefulNotification, INotification

    Constructors

    View Source

    MediaTypeChangedNotification(IEnumerable<ContentTypeChange<IMediaType>>, EventMessages)

    Initializes a new instance of the MediaTypeChangedNotification class with multiple content type changes.

    Declaration
    public MediaTypeChangedNotification(IEnumerable<ContentTypeChange<IMediaType>> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<ContentTypeChange<IMediaType>> target

    The content type change information for the media types.

    EventMessages messages

    The event messages collection.

    View Source

    MediaTypeChangedNotification(ContentTypeChange<IMediaType>, EventMessages)

    Initializes a new instance of the MediaTypeChangedNotification class with a single content type change.

    Declaration
    public MediaTypeChangedNotification(ContentTypeChange<IMediaType> target, EventMessages messages)
    Parameters
    Type Name Description
    ContentTypeChange<IMediaType> target

    The content type change information for the media type.

    EventMessages messages

    The event messages collection.

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