Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.