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