SiteMapProvider.HintAncestorNodes Method
Assembly: System.Web (in system.web.dll)
public void HintAncestorNodes ( SiteMapNode node, int upLevel )
public function HintAncestorNodes ( node : SiteMapNode, upLevel : int )
Parameters
- node
The SiteMapNode that acts as a reference point for upLevel.
- upLevel
The number of ancestor SiteMapNode generations to fetch. 0 indicates no ancestor nodes are retrieved and -1 indicates that all ancestors might be retrieved and cached.
The default HintAncestorNodes method only checks for an upLevel parameter that is less than -1 and a node parameter that is a null reference (Nothing in Visual Basic). Because the XmlSiteMapProvider class caches site map information in memory, the HintAncestorNodes method is not used.
Site map providers can override the HintAncestorNodes method to perform an optimized retrieval of parent and ancestor nodes of the specified SiteMapNode object.
The upLevel parameter is used to specify how many levels of parent and ancestor nodes to traverse from the specified SiteMapNode. If fewer levels exist than are requested, all available ancestor nodes are returned within the specified bound. If preferred, the parent node can be linked to the specified SiteMapNode using the ParentNode property.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.