PortalSiteMapProvider.DynamicChildLimit Property (Microsoft.SharePoint.Publishing.Navigation)
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)
Syntax

Visual Basic (Declaration)
Public Property DynamicChildLimit As Integer
Visual Basic (Usage)
Dim instance As PortalSiteMapProvider
Dim value As Integer

value = instance.DynamicChildLimit

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

Property Value

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.
Remarks

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

Tags :


Page view tracker