Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentTypeDeletingNotification

    Notification that is published before a content type is deleted.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IEnumerable<IContentType>>
    CancelableObjectNotification<IEnumerable<IContentType>>
    CancelableEnumerableObjectNotification<IContentType>
    DeletingNotification<IContentType>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public class ContentTypeDeletingNotification : DeletingNotification<IContentType>, IStatefulNotification, ICancelableNotification, INotification
    Remarks

    This notification is cancelable, allowing handlers to prevent the delete operation. The notification is published by the IContentTypeService before the content type is removed.

    Constructors

    View Source

    ContentTypeDeletingNotification(IEnumerable<IContentType>, EventMessages)

    Initializes a new instance of the ContentTypeDeletingNotification class with multiple content types.

    Declaration
    public ContentTypeDeletingNotification(IEnumerable<IContentType> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<IContentType> target

    The collection of content types being deleted.

    EventMessages messages

    The event messages collection.

    View Source

    ContentTypeDeletingNotification(IContentType, EventMessages)

    Initializes a new instance of the ContentTypeDeletingNotification class with a single content type.

    Declaration
    public ContentTypeDeletingNotification(IContentType target, EventMessages messages)
    Parameters
    Type Name Description
    IContentType target

    The content type being deleted.

    EventMessages messages

    The event messages collection.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX