Class ContentSendingToPublishNotification
A notification that is used to trigger the IContentService when the SendToPublication method is called in the API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class ContentSendingToPublishNotification : CancelableObjectNotification<IContent>, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the send to publish operation
by setting Cancel to true.
Constructors
View SourceContentSendingToPublishNotification(IContent, EventMessages)
Initializes a new instance of the ContentSendingToPublishNotification class.
Declaration
public ContentSendingToPublishNotification(IContent target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | target | The content being sent to publish. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceEntity
Getting the IContent object being sent to publish.
Declaration
public IContent Entity { get; }
Property Value
| Type | Description |
|---|---|
| IContent |