SiteMapProviderAdapter.GetParentNodeRelativeToNodeAndHintDownFromParent Method
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SiteMapProviderAdapter.GetParentNodeRelativeToNodeAndHintDownFromParent Method

Provides an optimized lookup method for site map providers when retrieving an ancestor node for the specified SiteMapNode object and fetching its child nodes.

[Visual Basic]
Public Overrides Sub GetParentNodeRelativeToNodeAndHintDownFromParent( _
   ByVal node As SiteMapNode, _
   ByVal walkupLevels As Integer, _
   ByVal relativeDepthFromWalkup As Integer _
) _
    Implements ISiteMapProvider.GetParentNodeRelativeToNodeAndHintDownFromParent
public override SiteMapNode GetParentNodeRelativeToNodeAndHintDownFromParent(
   SiteMapNode node,
   int walkupLevels,
   int relativeDepthFromWalkup


The SiteMapNode that acts as a reference point for walkupLevels and relativeDepthFromWalkup.
The number of ancestor node levels to traverse when retrieving the requested ancestor node.
The number of descendant node levels to retrieve from the target ancestor node.

Return Value

A SiteMapNode that represents an ancestor of node; otherwise, null, if the current or ancestor SiteMapNode is not found or cannot be returned for the current user.




Exception Type Condition
ArgumentOutOfRangeException The value specified for walkupLevels or relativeDepthFromWalkup is less than 0.
ArgumentNullException node is null.

See Also

SiteMapProviderAdapter Class | Spring.Web.Providers Namespace