PortalNavigation.CurrentDynamicChildLimit property

Gets or sets the maximum number of "dynamic" child items to show beneath this site in the current navigation.

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

public int CurrentDynamicChildLimit { get; set; }

Property value

Type: System.Int32
An integer that represents the maximum number of dynamic child items to return.

Dynamic children are sub-sites (represented by SPWeb objects) and publishing pages.The default value of the returned integer is 20. Setting the value to 0 removes the limit.The value of the DynamicPageLimit() property on the associated PortalSiteMapProvider object takes precedence over this setting unless the PortalSiteMapProvider.DynamicPageLimit property is set to 0, which is the default. You can use this property to limit the effect of poor navigation management. When a site has a large number of sub-sites or pages, and the CurrentIncludeSubSites and CurrentIncludePages properties are set to true, all of the items are displayed in the navigation menus. Showing large numbers of items in the navigation menus is not useful and can have a negative impact on performance.To save changes after setting this property, call the Update() method.