Class ContentUnpublishedNotification
Notification that is published after content has been unpublished.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentUnpublishedNotification : EnumerableObjectNotification<IContent>, IStatefulNotification, INotification
Remarks
This notification is published by the IContentService after content has been removed from the public site. It is not cancelable since the unpublish operation has already completed.
Constructors
View SourceContentUnpublishedNotification(IEnumerable<IContent>, EventMessages)
Initializes a new instance of the ContentUnpublishedNotification class with multiple content items.
Declaration
public ContentUnpublishedNotification(IEnumerable<IContent> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IContent> | target | The collection of content items that were unpublished. |
| EventMessages | messages | The event messages collection. |
ContentUnpublishedNotification(IContent, EventMessages)
Initializes a new instance of the ContentUnpublishedNotification class with a single content item.
Declaration
public ContentUnpublishedNotification(IContent target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | target | The content item that was unpublished. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceUnpublishedEntities
Gets the collection of IContent items that were unpublished.
Declaration
public IEnumerable<IContent> UnpublishedEntities { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IContent> |