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)
Syntax
'Declaration
Public Property IncludeInCurrentNavigation As Boolean
Get
Set
'Usage
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.
Remarks
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.