Share via


SPSiteMapProvider.GetChildNodes method

Retrieves the child nodes of a specified SiteMapNode as a site-map node collection (SPNavigationNodeCollection).

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Function GetChildNodes ( _
    node As SiteMapNode _
) As SiteMapNodeCollection
'Usage
Dim instance As SPSiteMapProvider
Dim node As SiteMapNode
Dim returnValue As SiteMapNodeCollection

returnValue = instance.GetChildNodes(node)
public override SiteMapNodeCollection GetChildNodes(
    SiteMapNode node
)

Parameters

Return value

Type: System.Web.SiteMapNodeCollection
Returns a read-only SPNavigationNodeCollection that contains the child nodes of the specified SiteMapNode object; otherwise returns a null reference, or an empty collection if no child nodes exist.

Remarks

The child nodes in the collection represent the subwebs of the Web site represented by the node parameter.

Notes to Inheritors: When overriding the GetChildNodes method in a derived class, be sure to perform security trimming on the child nodes and ensure that the returned collection is read-only. The collection contains only the immediate children of the specified node.

See also

Reference

SPSiteMapProvider class

SPSiteMapProvider members

Microsoft.SharePoint.Navigation namespace

System.Web.SiteMapNode

Microsoft.SharePoint.Navigation.SPNavigationNodeCollection