ContentTypeService Events#

    The ContentTypeService class implements IContentTypeService. It provides easy access to operations involving IContentType and IMediaType.

    Event Signature Description
    SavingContentType (IContentTypeService sender, SaveEventArgs<IContentType> e) Raised when ContentTypeService.Save (IContentType overloads) is called in the API.
    "sender" will be the current IContentTypeService object.
    "e" will provide:
    1. SavedEntities: Gets the collection of IContentType objects being saved.
    SavedContentType (IContentTypeService sender, SaveEventArgs<IContentType> e) Raised when ContentTypeService.Save (IContentType overloads) is called in the API and after data has been persisted.
    "sender" will be the current IContentTypeService object.
    "e" will provide:
    NOTE: See here on how to determine if the entity is brand new
    1. SavedEntities: Gets the saved collection of IContentType objects.
    SavingMediaType (IContentTypeService sender, SaveEventArgs<IMediaType> e) Raised when ContentTypeService.Save (IMediaType overloads) is called in the API.
    "sender" will be the current IContentTypeService object.
    "e" will provide:
    1. SavedEntities: Gets the collection of IMediaType objects being saved.
    SavedMediaType (IContentTypeService sender, SaveEventArgs<IMediaType> e) Raised when ContentTypeService.Save (IMediaType overloads) is called in the API and after data has been persisted.
    "sender" will be the current IContentTypeService object.
    "e" will provide:
    NOTE: See here on how to determine if the entity is brand new
    1. SavedEntities: Gets the saved collection of IMediaType objects.
    DeletingContentType (IContentTypeService sender, DeleteEventArgs<IContentType> e) Raised when ContentTypeService.Delete (IContentType overloads) is called in the API.
    "sender" will be the current IContentTypeService object.
    "e" will provide:
    1. DeletedEntities: Gets the collection of IContentType objects being deleted.
    DeletedContentType (IContentTypeService sender, DeleteEventArgs<IContentType> e) Raised when ContentTypeService.Delete (IContentType overloads) is called in the API.
    "sender" will be the current IContentTypeService object.
    "e" will provide:
    1. DeletedEntities: Gets the collection of deleted IContentType objects.
    DeletingMediaType (IContentTypeService sender, DeleteEventArgs<IMediaType> e) Raised when ContentTypeService.Delete (IMediaType overloads) is called in the API.
    "sender" will be the current IContentTypeService object.
    "e" will provide:
    1. DeletedEntities: Gets the collection of IMediaType objects being deleted.
    DeletedMediaType (IContentTypeService sender, DeleteEventArgs<IMediaType> e) Raised when ContentTypeService.Delete (IMediaType overloads) is called in the API.
    "sender" will be the current IContentTypeService object.
    "e" will provide:
    1. DeletedEntities: Gets the collection of deleted IMediaType objects.