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