Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

StaticSiteMapProvider.GetChildNodes Method

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

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public override SiteMapNodeCollection GetChildNodes (
	SiteMapNode node
)
public SiteMapNodeCollection GetChildNodes (
	SiteMapNode node
)
public override function GetChildNodes (
	node : SiteMapNode
) : SiteMapNodeCollection
Not applicable.

Parameters

node

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

Return Value

A read-only 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.

Exception typeCondition

ArgumentNullException

node is a null reference (Nothing in Visual Basic).

The 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 StaticSiteMapProvider, and use 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 GetChildNodes method calls the BuildSiteMap method internally to retrieve read-only SiteMapNodeCollection collection of site map nodes that are relative to the specified site map node and relevant to the current user.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft