Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentDeletedVersionsNotification

    A notification that is used to trigger the IContentService when the DeleteVersion and DeleteVersions methods are called in the API, and the version has been deleted.

    Inheritance
    System.Object
    StatefulNotification
    DeletedVersionsNotificationBase<IContent>
    DeletedVersionsNotification<IContent>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class ContentDeletedVersionsNotification : DeletedVersionsNotification<IContent>, IStatefulNotification, INotification

    Constructors

    View Source

    ContentDeletedVersionsNotification(Int32, EventMessages, Int32, Boolean, DateTime)

    Initializes a new instance of the ContentDeletedVersionsNotification.

    Declaration
    public ContentDeletedVersionsNotification(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 IContent object being deleted.

    EventMessages messages

    Initializes a new instance of the EventMessages.

    System.Int32 specificVersion

    Gets the id of the IContent object version being deleted.

    System.Boolean deletePriorVersions

    False by default.

    DateTime dateToRetain

    Gets the latest version date.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX
    OSZAR »