Export (0) Print
Expand All

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

Show:
© 2015 Microsoft