Update v14 api docs with info from umbraco docs (#15977)

* update api docs

* small update
This commit is contained in:
Alina-Magdalena Tincas
2024-04-11 11:19:23 +02:00
committed by GitHub
parent 513f39f623
commit 85747593cc
98 changed files with 790 additions and 131 deletions

View File

@@ -5,7 +5,10 @@ using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Notifications;
/// <summary>
/// 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.
/// </summary>
public sealed class ContentCopiedNotification : CopiedNotification<IContent>
{
public ContentCopiedNotification(IContent original, IContent copy, int parentId, Guid? parentKey, bool relateToOriginal, EventMessages messages)
@@ -13,6 +16,24 @@ public sealed class ContentCopiedNotification : CopiedNotification<IContent>
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ContentCopiedNotification"/>.
/// </summary>
/// <param name="original">
/// Gets the original <see cref="IContent"/> object.
/// </param>
/// <param name="copy">
/// Gets the <see cref="IContent"/> object being copied.
/// </param>
/// <param name="parentId">
/// Gets the ID of the parent of the <see cref="IContent"/> being copied.
/// </param>
/// <param name="relateToOriginal">
/// Boolean indicating whether the copy was related to the orginal.
/// </param>
/// <param name="messages">
/// Initializes a new instance of the <see cref="EventMessages"/>.
/// </param>
[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)
: this(original, copy, parentId, null, relateToOriginal, messages)