Search Results for

    Show / Hide Table of Contents
    View Source

    Class TreeService

    Implements ITreeService.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class TreeService : ITreeService

    Constructors

    View Source

    TreeService(TreeCollection)

    Initializes a new instance of the TreeService class.

    Declaration
    public TreeService(TreeCollection treeCollection)
    Parameters
    Type Name Description
    TreeCollection treeCollection

    Methods

    View Source

    GetAll(TreeUse)

    Gets all trees.

    Declaration
    public IEnumerable<Tree> GetAll(TreeUse use = TreeUse.Main)
    Parameters
    Type Name Description
    TreeUse use
    Returns
    Type Description
    IEnumerable<Tree>
    View Source

    GetByAlias(String)

    Gets a tree.

    Declaration
    public Tree GetByAlias(string treeAlias)
    Parameters
    Type Name Description
    System.String treeAlias

    The tree alias.

    Returns
    Type Description
    Tree
    View Source

    GetBySection(String, TreeUse)

    Gets all trees for a section.

    Declaration
    public IEnumerable<Tree> GetBySection(string sectionAlias, TreeUse use = TreeUse.Main)
    Parameters
    Type Name Description
    System.String sectionAlias
    TreeUse use
    Returns
    Type Description
    IEnumerable<Tree>
    View Source

    GetBySectionGrouped(String, TreeUse)

    Gets all trees for a section, grouped.

    Declaration
    public IDictionary<string, IEnumerable<Tree>> GetBySectionGrouped(string sectionAlias, TreeUse use = TreeUse.Main)
    Parameters
    Type Name Description
    System.String sectionAlias
    TreeUse use
    Returns
    Type Description
    IDictionary<System.String, IEnumerable<Tree>>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • TreeService(TreeCollection)
    • Methods
      • GetAll(TreeUse)
      • GetByAlias(String)
      • GetBySection(String, TreeUse)
      • GetBySectionGrouped(String, TreeUse)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX