PublishingPage.IncludeInGlobalNavigation property

Gets or sets a value that indicates whether this PublishingPage object is included by the dynamic portion of the PortalSitemapProvider in the GlobalNavigation mode.

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

Public Property IncludeInGlobalNavigation As Boolean
Dim instance As PublishingPage
Dim value As Boolean

value = instance.IncludeInGlobalNavigation

instance.IncludeInGlobalNavigation = value

Property value

Type: System.Boolean
true if the area should be included in the current navigation; otherwise, false.
This property defaults to true.

This property can be so that even if this property is set true and the parent Web site has the IncludePagesInNavigation property set to false, this Web site does not appear in navigation.

Setting this property opens, modifies, or updates the parent PublishingWeb object. This could make other instances of the same PublishingWeb object stale. Performance may be better if you use the IncludeInNavigation(Boolean, Guid) or ExcludeFromNavigation(Boolean, Guid) methods when showing or hiding several child objects of the same parent.