Class ElementCopyingNotification
The notification is published after a copy object has been created and had its parentId updated.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ElementCopyingNotification : CopyingNotification<IElement>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceElementCopyingNotification(IElement, IElement, int, Guid?, EventMessages)
Declaration
[Obsolete("Please use the constructor without parentId instead. Scheduled for removal in Umbraco 20.")]
public ElementCopyingNotification(IElement original, IElement copy, int parentId, Guid? parentKey, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IElement | original | |
| IElement | copy | |
| int | parentId | |
| Guid? | parentKey | |
| EventMessages | messages |
ElementCopyingNotification(IElement, IElement, Guid?, EventMessages)
Declaration
public ElementCopyingNotification(IElement original, IElement copy, Guid? parentKey, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IElement | original | |
| IElement | copy | |
| Guid? | parentKey | |
| EventMessages | messages |