Share via


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)

Syntax

'Declaration
Public Property DynamicChildLimit As Integer
    Get
    Set
'Usage
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.

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

Reference

PortalSiteMapProvider class

PortalSiteMapProvider members

Microsoft.SharePoint.Publishing.Navigation namespace

PortalSiteMapProvider