PortalSiteMapDataSource.TrimNode Method

Trims nodes that returned by the data source.

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

Syntax

'Declaration
Protected Friend Overridable Sub TrimNode ( _
    data As PortalHierarchyData _
)
'Usage
Dim data As PortalHierarchyData

Me.TrimNode(data)
protected internal virtual void TrimNode(
    PortalHierarchyData data
)

Parameters

Remarks

Override this method in a derived class and access the data.PortalSiteMapNode property to get the corresponding PortalSiteMapNode and use the data.ShowNode and data.ShowChildren properties to apply trimming. All combinations of these properties are valid. The combination of data.ShowNode = false, and data.ShowChildren = true, returns the child objects that are located directly below the current node's parent.

See Also

Reference

PortalSiteMapDataSource Class

PortalSiteMapDataSource Members

Microsoft.SharePoint.Publishing.Navigation Namespace

ShowNode

ShowChildren