DataTypeService Notifications

    If you are using Umbraco 8 or any lower version, please refer to the DataTypeSercive Events article instead.

    The DataTypeService class implements IDataTypeService. It provides access to operations involving IDataType.

    Notification Members Description
    DataTypeSavingNotification
    • IEnumerable<IDataType> SavedEntities
    • EventMessages Messages
    • IDictionary<string,object> State
    • bool Cancel
    Published when DataTypeService.Save is called in the API.
    SavedEntities: Gets the collection of IDataType objects being saved.
    DataTypeSavedNotification
    • IEnumerable<IDataType> SavedEntities
    • EventMessages Messages
    • IDictionary<string,object> State
    Published when DataTypeService.Save is called in the API and after data has been persisted. NOTE: See here on how to determine if the entity is brand new
    SavedEntities: Gets the saved collection of IDataType objects.
    DataTypeDeletingNotification
    • IEnumerable<IDataType> DeletedEntities
    • EventMessages Messages
    • IDictionary<string,object> State
    • bool Cancel
    Published when DataTypeService.Delete is called in the API.
    DeletedEntities: Gets the collection of IDataType objects being deleted.
    DataTypeDeletedNotification
    • IEnumerable<IDataType> DeletedEntities
    • EventMessages Messages
    • IDictionary<string,object> State
    Published when DataTypeService.Delete is called in the API, after the IDataType objects has been deleted.
    DeletedEntities: Gets the collection of deleted IDataType objects.
    DataTypeMovingNotification
    • IEnumerable<MoveEventInfo<IDataType>> MoveInfoCollection
    • EventMessages Messages
    • IDictionary<string,object> State
    • bool Cancel
    Published when IDataTypeService.Move is called in the API.
    MoveInfoCollection will for each moving entity provide:
    1. Entity: Gets the IDataType object being moved
    2. OriginalPath: The original path the entity is moved from
    3. NewParentId: Gets the Id of the parent the entity will have after it has been moved
    DataTypeMovedNotification
    • IEnumerable<MoveEventInfo<IDataType>> MoveInfoCollection
    • EventMessages Messages
    • IDictionary<string,object> State
    Published when IDataTypeService.Move is called in the API, after the IDataType has been moved.
    MoveInfoCollection will for each moving entity provide:
    1. Entity: Gets the moved IDataType object
    2. OriginalPath: The original path the entity is moved from
    3. NewParentId: Gets the Id of the parent the entity will have after it has been moved