PublishingPage.IncludeInCurrentNavigation property

Gets or sets a value that indicates whether the PublishingPage object is included by PortalSitemapProviders that have NavigationType set to "Current".

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


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

value = instance.IncludeInCurrentNavigation

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

Property value

Type: System.Boolean
true if this PublishingPage should be included in the current navigation; otherwise, false.
This property defaults to true.
The value is true if this PublishingPage should be included in the current navigation, and it is false if the area should not be included.


Setting this property opens, modifies, or updates the parent PublishingWeb object. Setting the property 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.

See also


PublishingPage class

PublishingPage members

Microsoft.SharePoint.Publishing namespace