Retrieve a PageData listing
Namespace:
EPiServer.CoreAssembly: EPiServer (in EPiServer.dll) Version: 5.2.375.236
Syntax
| C# |
|---|
PageDataCollection GetChildren( PageReference pageLink ) |
Parameters
- pageLink
- Type: EPiServer.Core..::.PageReference
Reference to parent page
Return Value
Returns a collection of pages directly below the page referenced by the PageReference parameter.
Examples
The following code example demonstrates the usage of GetChildren.
CopyC#
PageDataCollection oPages;
PageReference oParent = PageReference.StartPage;
oPages = DataFactory.Instance.GetChildren(oParent);
Response.Write("Count of pages: " + oPages.Count);