System.Web.StaticSiteMapProvider.GetChildNodes Method

Retrieves the child site map nodes of a specific System.Web.SiteMapNode object.

Syntax

public override SiteMapNodeCollection GetChildNodes (SiteMapNode node)

Parameters

node
The System.Web.SiteMapNode for which to retrieve all child site map nodes.

Returns

A read-only System.Web.SiteMapNodeCollection that contains the child site map nodes of node. If security trimming is enabled, the collection contains only site map nodes that the user is permitted to see.

Remarks

The System.Web.SiteMapNode objects delegate to the site map provider to keep track of their child and parent site map nodes. As a result, classes that implement a site map provider for a hierarchical site map structure, such as System.Web.StaticSiteMapProvider, and use System.Web.SiteMapNode objects to represent site map nodes, must track the hierarchical relationships of all site map nodes in order to be able to navigate an entire hierarchical tree.

The StaticSiteMapProvider.GetChildNodes(SiteMapNode) method calls the StaticSiteMapProvider.BuildSiteMap method internally to retrieve read-only System.Web.SiteMapNodeCollection collection of site map nodes that are relative to the specified site map node and relevant to the current user.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0