Class ElementPublishingNotification
A notification that is used to trigger the IElementService when the Publishing method is called in the API. Called while publishing an element but before the element has been published. Cancel the operation to prevent the publish.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ElementPublishingNotification : CancelableEnumerableObjectNotification<IElement>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceElementPublishingNotification(IEnumerable<IElement>, EventMessages)
Declaration
public ElementPublishingNotification(IEnumerable<IElement> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IElement> | target | |
| EventMessages | messages |
ElementPublishingNotification(IElement, EventMessages)
Declaration
public ElementPublishingNotification(IElement target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IElement | target | |
| EventMessages | messages |
Properties
View SourcePublishedEntities
Gets a enumeration of IElement which are being published.
Declaration
public IEnumerable<IElement> PublishedEntities { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IElement> |