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