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)
Available in Sandboxed Solutions: No
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
node
Type: System.Web.SiteMapNodeThe SiteMapNode instance for which to retrieve the 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.
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.