IPageDescendantsWithMaxDepth Method Ingeniux CMS Content Store API

Retrieves the descendants of this page within the given depth limit.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

IEnumerable<IPage> DescendantsWithMaxDepth(
	out int count,
	int maxDepth,
	int pageSize = -1,
	int startIndex = -1
)

Parameters

count
Type: SystemInt32
Total count of all descendant pages within the given depth limit
maxDepth
Type: SystemInt32
The depth limit of descendants, relative of this page's hierarchy level.
Examples

A maxDepth value of 2 means to retrieve the descendants that are within 2 levels below the given page.
Remarks

A maxDepth of 0 means to retrieve all descendants.
pageSize (Optional)
Type: SystemInt32
Number of entries to return. If not provided, returns all entries.
startIndex (Optional)
Type: SystemInt32
Starting index of entries. If not provided, starts from the first entry.

Return Value

Type: IEnumerableIPage
Collection of descendant pages within the depth limit
See Also

Reference