Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentCopyingNotification

    A notification that is used to trigger the IContentService when the Copy method is called in the API. The notification is published after a copy object has been created and had its parentId updated and its state has been set to unpublished.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IContent>
    CancelableObjectNotification<IContent>
    CopyingNotification<IContent>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class ContentCopyingNotification : CopyingNotification<IContent>, IStatefulNotification, ICancelableNotification, INotification

    Constructors

    View Source

    ContentCopyingNotification(IContent, IContent, int, Guid?, EventMessages)

    Declaration
    public ContentCopyingNotification(IContent original, IContent copy, int parentId, Guid? parentKey, EventMessages messages)
    Parameters
    Type Name Description
    IContent original
    IContent copy
    int parentId
    Guid? parentKey
    EventMessages messages
    View Source

    ContentCopyingNotification(IContent, IContent, int, EventMessages)

    Initializes a new instance of the ContentCopyingNotification.

    Declaration
    [Obsolete("Please use constructor that takes a parent key as well, scheduled for removal in v15")]
    public ContentCopyingNotification(IContent original, IContent copy, int parentId, EventMessages messages)
    Parameters
    Type Name Description
    IContent original

    Gets the original IContent object.

    IContent copy

    Gets the IContent object being copied.

    int parentId

    Gets the ID of the parent of the IContent being copied.

    EventMessages messages

    Initializes a new instance of the EventMessages.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX