Class ContentPublishingNotification
Called while publishing content but before content has been published. Cancel the operation to prevent the publish.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentPublishingNotification : CancelableEnumerableObjectNotification<IContent>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceContentPublishingNotification(IEnumerable<IContent>, EventMessages)
Declaration
public ContentPublishingNotification(IEnumerable<IContent> target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IContent> | target | |
EventMessages | messages |
ContentPublishingNotification(IContent, EventMessages)
Declaration
public ContentPublishingNotification(IContent target, EventMessages messages)
Parameters
Type | Name | Description |
---|---|---|
IContent | target | |
EventMessages | messages |
Properties
View SourcePublishedEntities
Gets a enumeration of IContent which are being published.
Declaration
public IEnumerable<IContent> PublishedEntities { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IContent> |