PublishingWeb.IncludeSubSitesInNavigation Property

NOTE: This API is now obsolete.

Gets or sets a value that indicates 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
<ObsoleteAttribute("Use PublishingWeb.Navigation.GlobalIncludeSubSites/CurrentIncludeSubSites instead.")> _
Public Property IncludeSubSitesInNavigation As Boolean
    Get
    Set
'Usage
Dim instance As PublishingWeb
Dim value As Boolean

value = instance.IncludeSubSitesInNavigation

instance.IncludeSubSitesInNavigation = value
[ObsoleteAttribute("Use PublishingWeb.Navigation.GlobalIncludeSubSites/CurrentIncludeSubSites instead.")]
public bool IncludeSubSitesInNavigation { get; set; }

Property Value

Type: System.Boolean
A Boolean value that represents whether to automatically include subsites in navigation.
Set to true if the subsites of this site 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