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
System.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, Int32, Nullable<Guid>, EventMessages)
Declaration
public ContentCopyingNotification(IContent original, IContent copy, int parentId, Guid? parentKey, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IContent | original | |
IContent | copy | |
System.Int32 | parentId | |
System.Nullable<Guid> | parentKey | |
EventMessages | messages |
ContentCopyingNotification(IContent, IContent, Int32, EventMessages)
Initializes a new instance of the ContentCopyingNotification.
Declaration
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. |
System.Int32 | parentId | Gets the ID of the parent of the IContent being copied. |
EventMessages | messages | Initializes a new instance of the EventMessages. |