Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetChildNodes method

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)

public override SiteMapNodeCollection GetChildNodes(
	SiteMapNode node
)

Parameters

node
Type: System.Web.SiteMapNode

The SiteMapNode instance for which to retrieve all child nodes.

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.

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.

Show:
© 2015 Microsoft