versionFrom |
---|
9.0.0 |
:::note If you are using Umbraco 8 or any lower version, please refer to the MediaTypeService Events article instead. :::
The MediaTypeService class implements IMediaTypeService. It provides access to operations involving IMediaType.
Notification | Members | Description |
---|---|---|
MediaTypeSavingNotification |
|
Published when MediaTypeService.Save is called in the API. SavedEntities: Gets the collection of IMediaType objects being saved. |
MediaTypeSavedNotification |
|
Published when MediaTypeService.Save is called in the API, after the entities has been saved. NOTE: See here on how to determine if the entity is brand new SavedEntities: Gets the collection of saved IMediaType objects. |
MediaTypeDeletingNotification |
|
Published when MediaTypeService.Delete is called in the API. DeletedEntities: Gets the collection of IMediaType objects being deleted. |
MediaTypeDeletedNotification |
|
Published when MediaTypeService.Delete is called in the API, after the entities has been deleted. DeletedEntities: Gets the collection of deleted IMediaType objects. |
MediaTypeMovingNotification |
|
Published when MediaTypeService.Move is called in the API MoveInfoCollection will for each moving entity provide:
|
MediaTypeMovedNotification |
|
Published when MediaTypeService.Move is called in the API, after the entities has been moved. MoveInfoCollection will for each moving entity provide:
|
MediaTypeChangedNotification |
|
Published when a MediaType is saved or deleted, after the transaction has completed. This is mainly used for caching purposes, and generally not recommended, use Saved and Deleted notifications instead. Changes will for each item affected by the change prove:
|