Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentTypeChangeNotification<T>

    Abstract base class for notifications related to content type changes.

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

    The type of content type composition.

    Remarks

    This notification is published when content types are modified, allowing handlers to react to schema changes for cache invalidation or other purposes.

    Constructors

    View Source

    ContentTypeChangeNotification(IEnumerable<ContentTypeChange<T>>, EventMessages)

    Initializes a new instance of the ContentTypeChangeNotification<T> class with multiple content type changes.

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

    The collection of content type changes that occurred.

    EventMessages messages

    The event messages collection.

    View Source

    ContentTypeChangeNotification(ContentTypeChange<T>, EventMessages)

    Initializes a new instance of the ContentTypeChangeNotification<T> class with a single content type change.

    Declaration
    protected ContentTypeChangeNotification(ContentTypeChange<T> target, EventMessages messages)
    Parameters
    Type Name Description
    ContentTypeChange<T> target

    The content type change that occurred.

    EventMessages messages

    The event messages collection.

    Properties

    View Source

    Changes

    Gets the content type changes that occurred.

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