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