ContentRepo.GetHierarchy Method

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

GetHierarchy(int, int?)

Returns the content hierarchy in the specified App sorted like a tree.

public static IEnumerable<Content> GetHierarchy(int appId, int? depth)

Parameters

appId
int

Id of the App for which to get content.

depth
int?

The maximum depth of content to return, i.e. setting depth to 1 returns only root content. If depth is null, the entire hierarchy is returned.

Returns

System.Collections.Generic.IEnumerable

Returns a list of content items.