Class ContentTypeSavingNotification
Notification that is published before a content type is saved.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class ContentTypeSavingNotification : SavingNotification<IContentType>, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the save operation. The notification is published by the IContentTypeService before the content type is persisted.
Constructors
View SourceContentTypeSavingNotification(IEnumerable<IContentType>, EventMessages)
Initializes a new instance of the ContentTypeSavingNotification class with multiple content types.
Declaration
public ContentTypeSavingNotification(IEnumerable<IContentType> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IContentType> | target | The collection of content types being saved. |
| EventMessages | messages | The event messages collection. |
ContentTypeSavingNotification(IContentType, EventMessages)
Initializes a new instance of the ContentTypeSavingNotification class with a single content type.
Declaration
public ContentTypeSavingNotification(IContentType target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IContentType | target | The content type being saved. |
| EventMessages | messages | The event messages collection. |