Retrieves a PageData object with information about a page, based on the PageReference parameter.

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

Syntax

C#
PageData GetPage(
	PageReference pageLink
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
Reference to the page being retrieved

Return Value

PageData object requested

Examples

The following code example demonstrates how to get a start page.
CopyC#
PageData oPage;
oPage = DataFactory.Instance.GetPage(PageReference.StartPage);
Response.Write(oPage.PageName);
The following code example demonstrates how to get a page by ID.
CopyC#
PageData oPage;
oPage = DataFactory.Instance.GetPage(new PageReference(30));
Response.Write(oPage.PageName);

See Also