Class ContentTypeMovingNotification
A notification that is used to trigger the ContentTypeService when the Move method is called in the API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class ContentTypeMovingNotification : MovingNotification<IContentType>, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the move operation
by setting Cancel to true.
Constructors
View SourceContentTypeMovingNotification(IEnumerable<MoveEventInfo<IContentType>>, EventMessages)
Initializes a new instance of the ContentTypeMovingNotification class with multiple move operations.
Declaration
public ContentTypeMovingNotification(IEnumerable<MoveEventInfo<IContentType>> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<MoveEventInfo<IContentType>> | target | The move event information for the content types being moved. |
| EventMessages | messages | The event messages collection. |
ContentTypeMovingNotification(MoveEventInfo<IContentType>, EventMessages)
Initializes a new instance of the ContentTypeMovingNotification class with a single move operation.
Declaration
public ContentTypeMovingNotification(MoveEventInfo<IContentType> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveEventInfo<IContentType> | target | The move event information for the content type being moved. |
| EventMessages | messages | The event messages collection. |