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
data
Type: Microsoft.SharePoint.Publishing.Navigation.PortalHierarchyDataThe PortalHierarchyData object that represents a particular item in navigation.
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 members