Share via


PublishingWeb.IncludeSubSitesInNavigation Property

Determines whether to automatically include subsites, or any type of SPWeb object, in navigation.

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

Syntax

'Declaration
Public Property IncludeSubSitesInNavigation As Boolean
    Get
    Set
'Usage
Dim instance As PublishingWeb
Dim value As Boolean

value = instance.IncludeSubSitesInNavigation

instance.IncludeSubSitesInNavigation = value
public bool IncludeSubSitesInNavigation { get; set; }

Property Value

Type: System.Boolean
Boolean value that represents whether to automatically include subsites in navigation.
Set to True if the subsites of this Web should appear in navigation; otherwise, set to False.

Remarks

To save changes after setting this property, call the Update method.

See Also

Reference

PublishingWeb Class

PublishingWeb Members

Microsoft.SharePoint.Publishing Namespace

PortalSiteMapProvider