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.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentCopiedNotification : CopiedNotification<IContent>, IStatefulNotification, INotification
Constructors
View SourceContentCopiedNotification(IContent, IContent, Int32, Boolean, EventMessages)
Initializes a new instance of the ContentCopiedNotification.
Declaration
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. |
System.Int32 | parentId | Gets the ID of the parent of the IContent being copied. |
System.Boolean | relateToOriginal | Boolean indicating whether the copy was related to the orginal. |
EventMessages | messages | Initializes a new instance of the EventMessages. |
ContentCopiedNotification(IContent, IContent, Int32, Nullable<Guid>, Boolean, EventMessages)
Declaration
public ContentCopiedNotification(IContent original, IContent copy, int parentId, Guid? parentKey, bool relateToOriginal, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IContent | original | |
IContent | copy | |
System.Int32 | parentId | |
System.Nullable<Guid> | parentKey | |
System.Boolean | relateToOriginal | |
EventMessages | messages |