Class ScaffoldedNotification<T>
Abstract base class for cancelable notifications published when entities are scaffolded (copied).
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class ScaffoldedNotification<T> : CancelableObjectNotification<T>, IStatefulNotification, ICancelableNotification, INotification where T : class
Type Parameters
| Name | Description |
|---|---|
| T | The type of entity being scaffolded. |
Remarks
This notification provides both the original entity and the scaffold (copy) being created.
Constructors
View SourceScaffoldedNotification(T, T, int, EventMessages)
Initializes a new instance of the ScaffoldedNotification<T> class.
Declaration
protected ScaffoldedNotification(T original, T scaffold, int parentId, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| T | original | The original entity being copied from. |
| T | scaffold | The scaffold (copy) being created. |
| int | parentId | The ID of the parent under which the scaffold will be created. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceOriginal
Gets the original entity being copied from.
Declaration
public T Original { get; }
Property Value
| Type | Description |
|---|---|
| T |
ParentId
Gets the ID of the parent under which the scaffold will be created.
Declaration
public int ParentId { get; }
Property Value
| Type | Description |
|---|---|
| int |
Scaffold
Gets the scaffold (copy) being created.
Declaration
public T Scaffold { get; }
Property Value
| Type | Description |
|---|---|
| T |