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)

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

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

Show: