Called once when the control is populating the collection of pages

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

Syntax

C#
protected override void PopulatePages(
	PageDataCollection pages
)

Parameters

pages
Type: EPiServer.Core..::.PageDataCollection
Collection to populate with pages

Remarks

Override this method to customize the population of pages, if this control has been data bound the collection may already contain pages.

Examples

Example how a list control may choose to implement this method
CopyC#
protected override void PopulatePages(PageDataCollection pages)
{
if(PageLink.ID!=0)
GetChildren(PageLink,pages);
}

See Also