Class CreatingNotification<T>
Abstract base class for notifications published before an entity is created.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class CreatingNotification<T> : CancelableObjectNotification<T>, IStatefulNotification, ICancelableNotification, INotification where T : class
Type Parameters
| Name | Description |
|---|---|
| T | The type of entity being created. |
Remarks
This notification is cancelable, allowing handlers to prevent the creation. The notification is published before the entity is persisted to the database.
Constructors
View SourceCreatingNotification(T, EventMessages)
Initializes a new instance of the CreatingNotification<T> class.
Declaration
protected CreatingNotification(T target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| T | target | The entity being created. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceCreatedEntity
Gets the entity being created.
Declaration
public T CreatedEntity { get; }
Property Value
| Type | Description |
|---|---|
| T |