PortalHierarchyData Class
SharePoint 2010
Represents the IHierachyData implementation used by PortalSiteMapDataSource class.
Namespace:
Microsoft.SharePoint.Publishing.Navigation
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)] [AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] [SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)] public class PortalHierarchyData : IHierarchyData, INavigateUIData
This is a thin wrapper around a PortalSiteMapNode. Although PortalSiteMapNode objects are shared between requests, unique PortalHierarchyData instances are created for each request. The IHierarchyData and INavigateUIData interfaces are explicitly implemented, so you must cast instances of this class to the appropriate interface before accessing methods that are defined on that interface.