Search Results for

    Show / Hide Table of Contents
    View Source

    Class ReferencedDescendantsMediaController

    Inheritance
    System.Object
    ManagementApiControllerBase
    ContentControllerBase
    MediaControllerBase
    Namespace: Umbraco.Cms.Api.Management.Controllers.Media.References
    Assembly: Umbraco.Cms.Api.Management.dll
    Syntax
    public class ReferencedDescendantsMediaController : MediaControllerBase

    Constructors

    View Source

    ReferencedDescendantsMediaController(ITrackedReferencesService, IUmbracoMapper)

    Declaration
    public ReferencedDescendantsMediaController(ITrackedReferencesService trackedReferencesSkipTakeService, IUmbracoMapper umbracoMapper)
    Parameters
    Type Name Description
    ITrackedReferencesService trackedReferencesSkipTakeService
    IUmbracoMapper umbracoMapper

    Methods

    View Source

    ReferencedDescendants(CancellationToken, Guid, Int32, Int32)

    Gets a page list of the child nodes of the current item used in any kind of relation.

    Declaration
    public async Task<ActionResult<PagedViewModel<ReferenceByIdModel>>> ReferencedDescendants(CancellationToken cancellationToken, Guid id, int skip = 0, int take = 20)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Guid id
    System.Int32 skip
    System.Int32 take
    Returns
    Type Description
    Task<ActionResult<PagedViewModel<ReferenceByIdModel>>>
    Remarks

    Used when deleting and unpublishing a single item to check if this item has any descending items that are in any kind of relation. This is basically finding the descending items which are children in relations.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ReferencedDescendantsMediaController(ITrackedReferencesService, IUmbracoMapper)
    • Methods
      • ReferencedDescendants(CancellationToken, Guid, Int32, Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX