Share via


PortalSiteMapDataSource.TrimNode Method

Method passed to each item that is returned by the data source, so that various types of trimming may be optionally applied.

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. One combination that may seem unusual is data.ShowNode = false, data.ShowChildren = true, which in this case returns the children that are located directly beneath the current node's parent.

See Also

Reference

PortalSiteMapDataSource Class

PortalSiteMapDataSource Members

Microsoft.SharePoint.Publishing.Navigation Namespace

ShowNode

ShowChildren