Class ContentTypeChangeNotification<T>
Abstract base class for notifications related to content type changes.
Inheritance
object
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 SourceContentTypeChangeNotification(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. |
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 SourceChanges
Gets the content type changes that occurred.
Declaration
public IEnumerable<ContentTypeChange<T>> Changes { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<ContentTypeChange<T>> |