Share via


SPContentMapProvider.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 SPContentMapProvider
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

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.

This collection is always empty.

See also

Reference

SPContentMapProvider class

SPContentMapProvider members

Microsoft.SharePoint.Navigation namespace

System.Web.SiteMapNode

Microsoft.SharePoint.Navigation.SPNavigationNodeCollection