ContentService.GetRoots Method

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

Overloads

GetRoots(int, bool) Get content in the root of the specified app.
GetRoots(int, bool) Get content of the specified T in the root of specified app.

GetRoots(int, bool)

Get content in the root of the specified app.

public static IEnumerable<Content> GetRoots(int appId, bool filter = true)

Parameters

appId
int

Id of the app for which to get content.

filter
bool

true to filter out items that are deleted or where the user does not have read access, otherwise false.

Returns

System.Collections.Generic.IEnumerable

Returns a list of Content objects.

GetRoots(int, bool)

Get content of the specified T in the root of specified app.

public static IEnumerable<T> GetRoots<T>(int appId, bool filter = true)

    where T : Content

Parameters

appId
int

Id of the app item for which to get content.

filter
bool

true to filter out items that are deleted or where the user does not have read access, otherwise false.

Returns

System.Collections.Generic.IEnumerable<>

Returns a list of Content objects.