Class ContentTypeDeletedNotification
Notification that is published after a content type has been deleted.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class ContentTypeDeletedNotification : DeletedNotification<IContentType>, IStatefulNotification, INotification
Remarks
This notification is published by the IContentTypeService after the content type has been removed. It is not cancelable since the delete operation has already completed.
Constructors
View SourceContentTypeDeletedNotification(IEnumerable<IContentType>, EventMessages)
Initializes a new instance of the ContentTypeDeletedNotification class with multiple content types.
Declaration
public ContentTypeDeletedNotification(IEnumerable<IContentType> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IContentType> | target | The collection of content types that were deleted. |
| EventMessages | messages | The event messages collection. |
ContentTypeDeletedNotification(IContentType, EventMessages)
Initializes a new instance of the ContentTypeDeletedNotification class with a single content type.
Declaration
public ContentTypeDeletedNotification(IContentType target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IContentType | target | The content type that was deleted. |
| EventMessages | messages | The event messages collection. |