Retrive page listing.

Namespace:  EPiServer
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public IEnumerable<TPageData> GetChildren<TPageData>(
	PageReference pageLink,
	ILanguageSelector selector
)
where TPageData : new(), PageData

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The page that you want to list the children to.
selector
Type: EPiServer.Core..::.ILanguageSelector
An ILanguageSelector that will be used to determine the language for the child pages.

Type Parameters

TPageData
A type deriving from PageData having a default constructor.

Return Value

All children to the given page.

Remarks

This methods does not filter any pages due to access rights, but it will filter pages not published for the selected language.

See Also