Search Results for

    Show / Hide Table of Contents
    View Source

    Class ApplicationTreeController

    Used to return tree root nodes

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ControllerBase
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    Namespace: Umbraco.Cms.Web.BackOffice.Trees
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    [AngularJsonOnlyConfiguration]
    [PluginController("UmbracoTrees")]
    public class ApplicationTreeController : UmbracoAuthorizedApiController, IUmbracoFeature, IDiscoverable

    Constructors

    View Source

    ApplicationTreeController(ITreeService, ISectionService, ILocalizedTextService, IControllerFactory, IActionDescriptorCollectionProvider)

    Initializes a new instance of the ApplicationTreeController class.

    Declaration
    public ApplicationTreeController(ITreeService treeService, ISectionService sectionService, ILocalizedTextService localizedTextService, IControllerFactory controllerFactory, IActionDescriptorCollectionProvider actionDescriptorCollectionProvider)
    Parameters
    Type Name Description
    ITreeService treeService
    ISectionService sectionService
    ILocalizedTextService localizedTextService
    Microsoft.AspNetCore.Mvc.Controllers.IControllerFactory controllerFactory
    Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider actionDescriptorCollectionProvider

    Methods

    View Source

    GetApplicationTrees(String, String, FormCollection, TreeUse)

    Returns the tree nodes for an application

    Declaration
    public async Task<ActionResult<TreeRootNode>> GetApplicationTrees(string application, string tree, [ModelBinder(typeof(HttpQueryStringModelBinder))] FormCollection queryStrings, TreeUse use = TreeUse.Main)
    Parameters
    Type Name Description
    System.String application

    The application to load tree for

    System.String tree

    An optional single tree alias, if specified will only load the single tree for the request app

    Microsoft.AspNetCore.Http.FormCollection queryStrings

    The query strings

    TreeUse use

    Tree use.

    Returns
    Type Description
    Task<Microsoft.AspNetCore.Mvc.ActionResult<TreeRootNode>>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ApplicationTreeController(ITreeService, ISectionService, ILocalizedTextService, IControllerFactory, IActionDescriptorCollectionProvider)
    • Methods
      • GetApplicationTrees(String, String, FormCollection, TreeUse)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX