Class MediaSavedNotification
Notification that is published after media has been saved.
Inheritance
object
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 SourceMediaSavedNotification(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. |
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. |