Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentCopiedNotification

    A notification that is used to trigger the IContentService when the Copy method is called in the API. The notification is published after the content object has been copied.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IContent>
    CopiedNotification<IContent>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class ContentCopiedNotification : CopiedNotification<IContent>, IStatefulNotification, INotification

    Constructors

    View Source

    ContentCopiedNotification(IContent, IContent, int, bool, EventMessages)

    Initializes a new instance of the ContentCopiedNotification.

    Declaration
    [Obsolete("Please use constructor that takes a parent key as well, scheduled for removal in v15")]
    public ContentCopiedNotification(IContent original, IContent copy, int parentId, bool relateToOriginal, 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.

    bool relateToOriginal

    Boolean indicating whether the copy was related to the orginal.

    EventMessages messages

    Initializes a new instance of the EventMessages.

    View Source

    ContentCopiedNotification(IContent, IContent, int, Guid?, bool, EventMessages)

    Declaration
    public ContentCopiedNotification(IContent original, IContent copy, int parentId, Guid? parentKey, bool relateToOriginal, EventMessages messages)
    Parameters
    Type Name Description
    IContent original
    IContent copy
    int parentId
    Guid? parentKey
    bool relateToOriginal
    EventMessages messages
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX