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
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class MediaTypeChangedNotification : ContentTypeChangeNotification<IMediaType>, IStatefulNotification, INotification
Constructors
View SourceMediaTypeChangedNotification(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. |
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. |