Class MediaDeletingVersionsNotification
A notification that is used to trigger the IMediaService when the DeleteVersion and DeleteVersions methods are called in the API.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class MediaDeletingVersionsNotification : DeletingVersionsNotification<IMedia>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceMediaDeletingVersionsNotification(Int32, EventMessages, Int32, Boolean, DateTime)
Initializes a new instance of the Media
Declaration
public MediaDeletingVersionsNotification(int id, EventMessages messages, int specificVersion = 0, bool deletePriorVersions = false, DateTime dateToRetain = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | Gets the id of the IMedia object being deleted. |
Event |
messages | Initializes a new instance of the Event |
System. |
specificVersion | Gets the id of the IMedia object version being deleted. |
System. |
deletePriorVersions | False by default. |
Date |
dateToRetain | Gets the latest version date. |