Class MediaSavingNotification
A notification that is used to trigger the IMediaService when the Save method is called in the API.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaSavingNotification : SavingNotification<IMedia>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceMediaSavingNotification(IEnumerable<IMedia>, EventMessages)
Initializes a new instance of the MediaSavingNotification.
Declaration
public MediaSavingNotification(IEnumerable<IMedia> target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IMedia> | target | Gets the collection of IMedia objects being saved. |
EventMessages | messages | Initializes a new instance of the EventMessages. |
MediaSavingNotification(IMedia, EventMessages)
Declaration
public MediaSavingNotification(IMedia target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IMedia | target | |
EventMessages | messages |