PortalNavigation.CurrentIncludePages property

Gets or sets whether publishing pages in this site will be automatically included in its current navigation.

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

public bool CurrentIncludePages { get; set; }

Property value

Type: System.Boolean
true if pages are automatically included in current navigation; otherwise, false.

This property affects only a valid publishing site with a Pages list. To save changes after setting this property, call the Update() method.