GetParentAtLevel Method


Get the specified page's parent from the defined level. For instance if you call this function with a page that is 5 levels beyond the root and request the second level page the system will itterate through the parents until it's on level 2 and return that page.

Syntax

'Declaration
 
Public Shared Function GetParentAtLevel( _
   ByVal pageId As Guid, _
   ByVal level As Integer _
) As CmsPage
public static CmsPage GetParentAtLevel( 
   Guid pageId,
   int level
)

Parameters

pageId
level

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