View Source
Interface ITreeService
Represents a service which manages section trees.
Assembly: Umbraco.Core.dll
Syntax
public interface ITreeService
Methods
View Source
GetAll(TreeUse)
Declaration
IEnumerable<Tree> GetAll(TreeUse use = TreeUse.Main)
Parameters
Returns
| Type |
Description |
| IEnumerable<Tree> |
|
View Source
GetByAlias(String)
Declaration
Tree GetByAlias(string treeAlias)
Parameters
| Type |
Name |
Description |
| System.String |
treeAlias |
The tree alias.
|
Returns
View Source
GetBySection(String, TreeUse)
Gets all trees for a section.
Declaration
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
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>> |
|