Search Results for

    Show / Hide Table of Contents
    View Source

    Class TreeCollectionBuilder

    Builds a .

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.BackOffice.Trees
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    public class TreeCollectionBuilder : ICollectionBuilder<TreeCollection, Tree>

    Methods

    View Source

    AddTree(Tree)

    Registers a custom tree definition

    Declaration
    public void AddTree(Tree treeDefinition)
    Parameters
    Type Name Description
    Tree treeDefinition
    Remarks

    This is useful if a developer wishes to have a single tree controller for different tree aliases. In this case the tree controller cannot be decorated with the TreeAttribute (since then it will be auto-registered).

    View Source

    AddTreeController(Type)

    Declaration
    public void AddTreeController(Type controllerType)
    Parameters
    Type Name Description
    Type controllerType
    View Source

    AddTreeController<TController>()

    Declaration
    public void AddTreeController<TController>()
        where TController : TreeControllerBase
    Type Parameters
    Name Description
    TController
    View Source

    AddTreeControllers(IEnumerable<Type>)

    Declaration
    public void AddTreeControllers(IEnumerable<Type> controllerTypes)
    Parameters
    Type Name Description
    IEnumerable<Type> controllerTypes
    View Source

    CreateCollection(IServiceProvider)

    Declaration
    public TreeCollection CreateCollection(IServiceProvider factory)
    Parameters
    Type Name Description
    IServiceProvider factory
    Returns
    Type Description
    TreeCollection
    View Source

    RegisterWith(IServiceCollection)

    Declaration
    public void RegisterWith(IServiceCollection services)
    Parameters
    Type Name Description
    Microsoft.Extensions.DependencyInjection.IServiceCollection services
    View Source

    RemoveTree(Tree)

    Declaration
    public void RemoveTree(Tree treeDefinition)
    Parameters
    Type Name Description
    Tree treeDefinition
    View Source

    RemoveTreeController(Type)

    Declaration
    public void RemoveTreeController(Type type)
    Parameters
    Type Name Description
    Type type
    View Source

    RemoveTreeController<T>()

    Declaration
    public void RemoveTreeController<T>()
        where T : TreeControllerBase
    Type Parameters
    Name Description
    T
    View Source

    RemoveTreeControllers(IEnumerable<Type>)

    Declaration
    public void RemoveTreeControllers(IEnumerable<Type> controllerTypes)
    Parameters
    Type Name Description
    IEnumerable<Type> controllerTypes
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • AddTree(Tree)
      • AddTreeController(Type)
      • AddTreeController<TController>()
      • AddTreeControllers(IEnumerable<Type>)
      • CreateCollection(IServiceProvider)
      • RegisterWith(IServiceCollection)
      • RemoveTree(Tree)
      • RemoveTreeController(Type)
      • RemoveTreeController<T>()
      • RemoveTreeControllers(IEnumerable<Type>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX