Class ContentCopiedNotification
A notification that is used to trigger the IContentService when the Copy method is called in the API. The notification is published after the content object has been copied.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentCopiedNotification : CopiedNotification<IContent>, IStatefulNotification, INotification
Constructors
View SourceContentCopiedNotification(IContent, IContent, int, bool, EventMessages)
Initializes a new instance of the ContentCopiedNotification.
Declaration
[Obsolete("Please use constructor that takes a parent key as well, scheduled for removal in v15")]
public ContentCopiedNotification(IContent original, IContent copy, int parentId, bool relateToOriginal, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | original | Gets the original IContent object. |
| IContent | copy | Gets the IContent object being copied. |
| int | parentId | Gets the ID of the parent of the IContent being copied. |
| bool | relateToOriginal | Boolean indicating whether the copy was related to the orginal. |
| EventMessages | messages | Initializes a new instance of the EventMessages. |
ContentCopiedNotification(IContent, IContent, int, Guid?, bool, EventMessages)
Declaration
public ContentCopiedNotification(IContent original, IContent copy, int parentId, Guid? parentKey, bool relateToOriginal, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | original | |
| IContent | copy | |
| int | parentId | |
| Guid? | parentKey | |
| bool | relateToOriginal | |
| EventMessages | messages |