Search Results for

    Show / Hide Table of Contents
    View Source

    Class MediaDeletingVersionsNotification

    A notification that is used to trigger the IMediaService when the DeleteVersion and DeleteVersions methods are called in the API.

    Inheritance
    object
    StatefulNotification
    DeletedVersionsNotificationBase<IMedia>
    DeletingVersionsNotification<IMedia>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class MediaDeletingVersionsNotification : DeletingVersionsNotification<IMedia>, IStatefulNotification, ICancelableNotification, INotification

    Constructors

    View Source

    MediaDeletingVersionsNotification(int, EventMessages, int, bool, DateTime)

    Initializes a new instance of the MediaDeletingVersionsNotification.

    Declaration
    public MediaDeletingVersionsNotification(int id, EventMessages messages, int specificVersion = 0, bool deletePriorVersions = false, DateTime dateToRetain = default)
    Parameters
    Type Name Description
    int id

    Gets the id of the IMedia object being deleted.

    EventMessages messages

    Initializes a new instance of the EventMessages.

    int specificVersion

    Gets the id of the IMedia object version being deleted.

    bool deletePriorVersions

    False by default.

    DateTime dateToRetain

    Gets the latest version date.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX