Search Results for

    Show / Hide Table of Contents
    View Source

    Class DescendantsTrackedReferencesController

    Inheritance
    System.Object
    ManagementApiControllerBase
    TrackedReferencesControllerBase
    Namespace: Umbraco.Cms.ManagementApi.Controllers.TrackedReferences
    Assembly: Umbraco.Cms.ManagementApi.dll
    Syntax
    public class DescendantsTrackedReferencesController : TrackedReferencesControllerBase

    Constructors

    View Source

    DescendantsTrackedReferencesController(ITrackedReferencesService, IUmbracoMapper)

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

    Methods

    View Source

    Descendants(Int32, Int64, Int64, Nullable<Boolean>)

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

    Declaration
    public async Task<ActionResult<PagedViewModel<RelationItemViewModel>>> Descendants(int parentId, long skip, long take, bool? filterMustBeIsDependency)
    Parameters
    Type Name Description
    System.Int32 parentId
    System.Int64 skip
    System.Int64 take
    System.Nullable<System.Boolean> filterMustBeIsDependency
    Returns
    Type Description
    Task<ActionResult<PagedViewModel<RelationItemViewModel>>>
    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
      • DescendantsTrackedReferencesController(ITrackedReferencesService, IUmbracoMapper)
    • Methods
      • Descendants(Int32, Int64, Int64, Nullable<Boolean>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX