PortalSiteMapProvider.DynamicChildLimit Property

Gets or sets the maximum number of dynamic child items to show at each level. Dynamic child items are subsites (that is, any SPWeb objects) and pages.

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


Public Property DynamicChildLimit As Integer
Dim instance As PortalSiteMapProvider
Dim value As Integer

value = instance.DynamicChildLimit

instance.DynamicChildLimit = value
public int DynamicChildLimit { get; set; }

Property Value

Type: System.Int32
An integer that represents the maximum number of dynamic child items to return.
This value defaults to 50. Setting the value to 0 removes the limit.


You can use this property to limit the effect of poor navigation management. When a Web site has a large number of subsites or pages, and Show subsites or Show pages options are enabled, all items are displayed in the navigation menus. Showing a large number of items in the navigation menu is not useful and can have a negative impact on performance.

See Also


PortalSiteMapProvider Class

PortalSiteMapProvider Members

Microsoft.SharePoint.Publishing.Navigation Namespace