Retrieve a PageData listing

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 6.0.530.0

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);

See Also