Search Results for

    Show / Hide Table of Contents
    View Source

    Class StylesheetSavingNotification

    Notification that is published before a stylesheet is saved.

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

    This notification is cancelable, allowing handlers to prevent the save operation. The notification is published by the IFileService before the stylesheet is persisted.

    Constructors

    View Source

    StylesheetSavingNotification(IEnumerable<IStylesheet>, EventMessages)

    Initializes a new instance of the StylesheetSavingNotification class with multiple stylesheets.

    Declaration
    public StylesheetSavingNotification(IEnumerable<IStylesheet> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<IStylesheet> target

    The collection of stylesheets being saved.

    EventMessages messages

    The event messages collection.

    View Source

    StylesheetSavingNotification(IStylesheet, EventMessages)

    Initializes a new instance of the StylesheetSavingNotification class with a single stylesheet.

    Declaration
    public StylesheetSavingNotification(IStylesheet target, EventMessages messages)
    Parameters
    Type Name Description
    IStylesheet target

    The stylesheet being saved.

    EventMessages messages

    The event messages collection.

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