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