Class MediaDeletingNotification
A notification that is used to trigger the IMediaService when the DeleteMediaOfType, Delete and EmptyRecycleBin methods are called in the API.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaDeletingNotification : DeletingNotification<IMedia>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceMediaDeletingNotification(IEnumerable<IMedia>, EventMessages)
Initializes a new instance of the Media
Declaration
public MediaDeletingNotification(IEnumerable<IMedia> target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IMedia> | target | Gets the collection of IMedia objects being deleted. |
Event |
messages | Initializes a new instance of the Event |
MediaDeletingNotification(IMedia, EventMessages)
Declaration
public MediaDeletingNotification(IMedia target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IMedia | target | |
Event |
messages |