Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentSendingToPublishNotification

    A notification that is used to trigger the IContentService when the SendToPublication method is called in the API.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IContent>
    CancelableObjectNotification<IContent>
    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 Source

    ContentSendingToPublishNotification(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 Source

    Entity

    Getting the IContent object being sent to publish.

    Declaration
    public IContent Entity { get; }
    Property Value
    Type Description
    IContent
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX