Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ISiteMapProvider.HintAncestorNodes Method

Provides a method that site map providers can override to perform an optimized retrieval of one or more levels of parent and ancestor nodes, relative to the specified SiteMapNode object.

[Visual Basic]
Public Sub HintAncestorNodes( _
   ByVal node As SiteMapNode, _
   ByVal upLevel As Integer _
void HintAncestorNodes(
   SiteMapNode node,
   int upLevel


The SiteMapNode that acts as a reference point for 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.


Exception Type Condition
ArgumentOutOfRangeException upLevel is less than -1.
ArgumentNullException node is null.

See Also

ISiteMapProvider Interface | Spring.Web.Providers Namespace