Class ContentCopiedNotification
Notification that is published after content has been copied.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentCopiedNotification : CopiedNotification<IContent>, IStatefulNotification, INotification
Remarks
This notification is published by the IContentService after the content object has been copied. It is not cancelable since the copy operation has already completed.
Constructors
View SourceContentCopiedNotification(IContent, IContent, int, bool, EventMessages)
Initializes a new instance of the ContentCopiedNotification class.
Declaration
[Obsolete("Please use constructor that takes a parent key as well. Scheduled for removal in Umbraco 18.")]
public ContentCopiedNotification(IContent original, IContent copy, int parentId, bool relateToOriginal, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | original | The original content item that was copied. |
| IContent | copy | The copy of the content item. |
| int | parentId | The ID of the new parent. |
| bool | relateToOriginal | A value indicating whether the copy is related to the original. |
| EventMessages | messages | The event messages collection. |
ContentCopiedNotification(IContent, IContent, int, Guid?, bool, EventMessages)
Initializes a new instance of the ContentCopiedNotification class.
Declaration
public ContentCopiedNotification(IContent original, IContent copy, int parentId, Guid? parentKey, bool relateToOriginal, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | original | The original content item that was copied. |
| IContent | copy | The copy of the content item. |
| int | parentId | The ID of the new parent. |
| Guid? | parentKey | The key of the new parent. |
| bool | relateToOriginal | A value indicating whether the copy is related to the original. |
| EventMessages | messages | The event messages collection. |