Retrieves all of this page's ancestor pages. The results are returned in ascending order based on the pages' hierarchy level.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
SyntaxIEnumerable<IPage> Ancestors(
IHierarchyId rootHierarchy = null
)
Function Ancestors (
Optional rootHierarchy As IHierarchyId = Nothing
) As IEnumerable(Of IPage)
IEnumerable<IPage^>^ Ancestors(
IHierarchyId^ rootHierarchy = nullptr
)
abstract Ancestors :
?rootHierarchy : IHierarchyId
(* Defaults:
let _rootHierarchy = defaultArg rootHierarchy null
*)
-> IEnumerable<IPage> Parameters
- rootHierarchy IHierarchyId (Optional)
- Optional root for ancestors call. The call will not include any pages above the root.
Return Value
IEnumerableIPageCollection of ancestor pages
RemarksIf the page is the content store root, returns empty collection.
See Also