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