GetPage Method


Gets a page based on the identity parameters passed to the function.

Overload List

OverloadDescription
GetPage(Guid)Get a specified page based on identity and language. This will return a CmsPage object so you will not find it's properties strongly typed. Instead you can access them using the objects Property collection (myPage.Property["MyPropertyName"])  
GetPage(Guid,Int32)Get a specified page. This will return a CmsPage object so you will not find it's properties strongly typed. Instead you can access them using the objects Property collection (myPage.Property["MyPropertyName"])  
GetPage<T>(Guid)

Get a typed version of a specified page. This is usefull if you know what type of page you are getting. If you don't you should go with the more generic GetPage(Guid pageId).

 
GetPage<T>(Guid,Int32)

Get a typed version of a specified page and language. This is usefull if you know what type of page you are getting. If you don't you should go with the more generic GetPage(Guid pageId, int languageId).

 

Remarks

This function does not take conditions like publishing dates into concideration, so if you plan to present the fetched page you need to check things like StartPublish and StopPublish manually.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

This documentation was created using Document! X from Innovasys