Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentTypeSavingNotification

    Notification that is published before a content type is saved.

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

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

    Constructors

    View Source

    ContentTypeSavingNotification(IEnumerable<IContentType>, EventMessages)

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

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

    The collection of content types being saved.

    EventMessages messages

    The event messages collection.

    View Source

    ContentTypeSavingNotification(IContentType, EventMessages)

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

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

    The content type being saved.

    EventMessages messages

    The event messages collection.

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