Class ContentCopyingNotification
A notification that is used to trigger the IContentService when the Copy method is called in the API. The notification is published after a copy object has been created and had its parentId updated and its state has been set to unpublished.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentCopyingNotification : CopyingNotification<IContent>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceContentCopyingNotification(IContent, IContent, int, Guid?, EventMessages)
Declaration
public ContentCopyingNotification(IContent original, IContent copy, int parentId, Guid? parentKey, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | original | |
| IContent | copy | |
| int | parentId | |
| Guid? | parentKey | |
| EventMessages | messages |
ContentCopyingNotification(IContent, IContent, int, EventMessages)
Initializes a new instance of the ContentCopyingNotification.
Declaration
[Obsolete("Please use constructor that takes a parent key as well, scheduled for removal in v15")]
public ContentCopyingNotification(IContent original, IContent copy, int parentId, 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. |
| EventMessages | messages | Initializes a new instance of the EventMessages. |