Search Results for

    Show / Hide Table of Contents
    View Source

    Class TreeChangeNotification<T>

    Abstract base class for notifications related to tree structure changes.

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

    The type of entity in the tree.

    Remarks

    Tree change notifications are published when entities are added, removed, moved, or have their structure modified in a hierarchical tree. They are used for cache invalidation and tree synchronization.

    Constructors

    View Source

    TreeChangeNotification(IEnumerable<TreeChange<T>>, EventMessages)

    Initializes a new instance of the TreeChangeNotification<T> class with multiple tree changes.

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

    The collection of tree changes that occurred.

    EventMessages messages

    The event messages collection.

    View Source

    TreeChangeNotification(TreeChange<T>, EventMessages)

    Initializes a new instance of the TreeChangeNotification<T> class with a single tree change.

    Declaration
    protected TreeChangeNotification(TreeChange<T> target, EventMessages messages)
    Parameters
    Type Name Description
    TreeChange<T> target

    The tree change that occurred.

    EventMessages messages

    The event messages collection.

    Properties

    View Source

    Changes

    Gets the tree changes that occurred.

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