Search Results for

    Show / Hide Table of Contents
    View Source

    Class SavingNotification<T>

    Abstract base class for notifications published before entities are saved.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IEnumerable<T>>
    CancelableObjectNotification<IEnumerable<T>>
    CancelableEnumerableObjectNotification<T>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class SavingNotification<T> : CancelableEnumerableObjectNotification<T>, IStatefulNotification, ICancelableNotification, INotification
    Type Parameters
    Name Description
    T

    The type of entities being saved.

    Remarks

    This notification is cancelable, allowing handlers to prevent the save operation. The notification is published before the entities are persisted to the database.

    Constructors

    View Source

    SavingNotification(IEnumerable<T>, EventMessages)

    Initializes a new instance of the SavingNotification<T> class with multiple entities.

    Declaration
    protected SavingNotification(IEnumerable<T> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<T> target

    The collection of entities being saved.

    EventMessages messages

    The event messages collection.

    View Source

    SavingNotification(T, EventMessages)

    Initializes a new instance of the SavingNotification<T> class with a single entity.

    Declaration
    protected SavingNotification(T target, EventMessages messages)
    Parameters
    Type Name Description
    T target

    The entity being saved.

    EventMessages messages

    The event messages collection.

    Properties

    View Source

    SavedEntities

    Gets the collection of entities being saved.

    Declaration
    public IEnumerable<T> SavedEntities { get; }
    Property Value
    Type Description
    IEnumerable<T>
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX