Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentSavingNotification

    Notification that is published before content is saved.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IEnumerable<IContent>>
    CancelableObjectNotification<IEnumerable<IContent>>
    CancelableEnumerableObjectNotification<IContent>
    SavingNotification<IContent>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class ContentSavingNotification : SavingNotification<IContent>, IStatefulNotification, ICancelableNotification, INotification
    Remarks

    This notification is cancelable, allowing handlers to prevent the save operation. The notification is published by the IContentService before content is persisted.

    Constructors

    View Source

    ContentSavingNotification(IEnumerable<IContent>, EventMessages)

    Initializes a new instance of the ContentSavingNotification class with multiple content items.

    Declaration
    public ContentSavingNotification(IEnumerable<IContent> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<IContent> target

    The collection of content items being saved.

    EventMessages messages

    The event messages collection.

    View Source

    ContentSavingNotification(IContent, EventMessages)

    Initializes a new instance of the ContentSavingNotification class with a single content item.

    Declaration
    public ContentSavingNotification(IContent target, EventMessages messages)
    Parameters
    Type Name Description
    IContent target

    The content item being saved.

    EventMessages messages

    The event messages collection.

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