Class ContentUnpublishingNotification
A notification that is used to trigger the IContentService when the UnPublishing method is called in the API.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentUnpublishingNotification : CancelableEnumerableObjectNotification<IContent>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceContentUnpublishingNotification(IEnumerable<IContent>, EventMessages)
Declaration
public ContentUnpublishingNotification(IEnumerable<IContent> target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IContent> | target | |
EventMessages | messages |
ContentUnpublishingNotification(IContent, EventMessages)
Declaration
public ContentUnpublishingNotification(IContent target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IContent | target | |
EventMessages | messages |
Properties
View SourceUnpublishedEntities
Gets a enumeration of IContent which are being unpublished.
Declaration
public IEnumerable<IContent> UnpublishedEntities { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IContent> |