View Source
Class TreeService
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class TreeService : ITreeService
Constructors
View Source
TreeService(TreeCollection)
Declaration
public TreeService(TreeCollection treeCollection)
Parameters
Methods
View Source
GetAll(TreeUse)
Declaration
public IEnumerable<Tree> GetAll(TreeUse use = TreeUse.Main)
Parameters
Returns
Type |
Description |
IEnumerable<Tree> |
|
View Source
GetByAlias(String)
Declaration
public 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
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>> |
|