View Source
Interface ITreeService
Represents a service which manages section trees.
Assembly: Umbraco.Web.dll
Syntax
public interface ITreeService
Methods
View Source
GetAll(TreeUse)
Declaration
IEnumerable<Tree> GetAll(TreeUse use = TreeUse.Main)
Parameters
Returns
Type |
Description |
System.Collections.Generic.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 |
System.Collections.Generic.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 |
System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.IEnumerable<Tree>> |
|