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