Search Results for

    Show / Hide Table of Contents
    View Source

    Class CreatingNotification<T>

    Abstract base class for notifications published before an entity is created.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<T>
    CancelableObjectNotification<T>
    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 Source

    CreatingNotification(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 Source

    CreatedEntity

    Gets the entity being created.

    Declaration
    public T CreatedEntity { get; }
    Property Value
    Type Description
    T
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX