Skip to content

Latest commit

 

History

History
114 lines (111 loc) · 4.41 KB

ContentTypeService-Events.md

File metadata and controls

114 lines (111 loc) · 4.41 KB
versionFrom needsV8Update
7.0.0
true

ContentTypeService Events

The ContentTypeService class implements IContentTypeService. It provides 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.