Class StylesheetSavingNotification
Notification that is published before a stylesheet is saved.
Inheritance
object
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 SourceStylesheetSavingNotification(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. |
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. |