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)

'Declaration
Public Overrides Function GetChildNodes ( _
	node As SiteMapNode _
) As SiteMapNodeCollection

Parameters

node
Type: System.Web.SiteMapNode

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

Return Value

Type: System.Web.SiteMapNodeCollection
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.

ExceptionCondition
ArgumentNullException

node is Nothing.

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft