We have moved!

You are currently looking at documentation for Umbraco 8 and older versions.
Go to docs.umbraco.com/umbraco-cms/reference/notifications/datatypeservice-notifications for documentation for Umbraco 9 and newer versions.

    DataTypeService Events

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

    Event Signature Description
    Saving (IDataTypeService sender, SaveEventArgs<IDataType> e) Raised when DataTypeService.Save is called in the API.
    "sender" will be the current IDataTypeService object.
    "e" will provide:
    1. SavedEntities: Gets the collection of IDataType objects being saved.
    Saved (IDataTypeService sender, SaveEventArgs<IDataType> e) Raised when DataTypeService.Save is called in the API and after data has been persisted.
    "sender" will be the current IDataTypeService object.
    "e" will provide:
    NOTE: See here on how to determine if the entity is brand new
    1. SavedEntities: Gets the saved collection of IDataType objects.
    Deleting (IDataTypeService sender, DeleteEventArgs<IDataType> e) Raised when DataTypeService.Delete is called in the API.
    "sender" will be the current IDataTypeService object.
    "e" will provide:
    1. DeletedEntities: Gets the collection of IDataType objects being deleted.
    Deleted (IDataTypeService sender, DeleteEventArgs<IDataType> e) Raised when DataTypeService.Delete is called in the API.
    "sender" will be the current IDataTypeService object.
    "e" will provide:
    1. DeletedEntities: Gets the collection of deleted IDataType objects.

    Other Events

    • DeletedContainer, DeletingContainer
    • SavedContainer, SavingContainer
    • Moving, Moved