Search Results for

    Show / Hide Table of Contents
    View Source

    Class DataTypeSavingNotification

    Notification that is published before a data type is saved.

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

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

    Constructors

    View Source

    DataTypeSavingNotification(IEnumerable<IDataType>, EventMessages)

    Initializes a new instance of the DataTypeSavingNotification class with multiple data types.

    Declaration
    public DataTypeSavingNotification(IEnumerable<IDataType> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<IDataType> target

    The collection of data types being saved.

    EventMessages messages

    The event messages collection.

    View Source

    DataTypeSavingNotification(IDataType, EventMessages)

    Initializes a new instance of the DataTypeSavingNotification class with a single data type.

    Declaration
    public DataTypeSavingNotification(IDataType target, EventMessages messages)
    Parameters
    Type Name Description
    IDataType target

    The data type being saved.

    EventMessages messages

    The event messages collection.

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