ContentService.GetChildren Method

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

Overloads

GetChildren(int, bool) Get child items of the specified content item.
GetChildren(int, bool) Get child items of the specified content item.

GetChildren(int, bool)

Get child items of the specified content item.

public static IEnumerable<Content> GetChildren(int id, bool filter = true)

Parameters

id
int

Id of the content item for which to get children.

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 objects implementing the Content interface.

GetChildren(int, bool)

Get child items of the specified content item.

public static IEnumerable<T> GetChildren<T>(int id, bool filter = true)

    where T : Content

Parameters

id
int

Id of the content item for which to get children.

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 items of type T.