Class ContentSavedNotification
Notification that is published after content has been saved.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentSavedNotification : SavedNotification<IContent>, IStatefulNotification, INotification
Remarks
This notification is published by the IContentService after content has been persisted. It is not cancelable since the save operation has already completed.
Constructors
View SourceContentSavedNotification(IEnumerable<IContent>, EventMessages)
Initializes a new instance of the ContentSavedNotification class with multiple content items.
Declaration
public ContentSavedNotification(IEnumerable<IContent> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IContent> | target | The collection of content items that were saved. |
| EventMessages | messages | The event messages collection. |
ContentSavedNotification(IContent, EventMessages)
Initializes a new instance of the ContentSavedNotification class with a single content item.
Declaration
public ContentSavedNotification(IContent target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | target | The content item that was saved. |
| EventMessages | messages | The event messages collection. |