ContentService.GetHierarchy Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

GetHierarchy(int, int?, bool)

Returns the content hierarchy for the specified App .

public static IEnumerable<Content> GetHierarchy(int appId, int? depth = default(int? ), bool filter = true)

Parameters

appId
int

Id of the App for which to get content.

depth
int?

The maximum depth of descendants to return, e.g. setting depth to 1 returns only the immediate children. If depth is null, all descendants are returned.

filter
bool

true to filter out items that are trashed or where the user does not have View permission, otherwise false.

Returns

System.Collections.Generic.IEnumerable

Returns a tree-sorted list of Content objects.