PublishingWeb.IncludeInCurrentNavigation Property
Controls whether this Web site is included by PortalSiteMapProvider objects 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 PublishingWeb
Dim value As Boolean
value = instance.IncludeInCurrentNavigation
instance.IncludeInCurrentNavigation = value
public bool IncludeInCurrentNavigation { get; set; }
Property Value
Type: System.Boolean
A Boolean value that represents whether this Web site is included.
The default value is True. The property is set to True if the PublishingWeb object should be included; otherwise, it is set to False.
Remarks
This property is superseded by IncludeSubSitesInNavigation such that, even if this property is set to True, if the specified property of the parent Web site is set to False, this Web site does not appear in navigation.
Setting this property causes the parent PublishingWeb to be opened, modified, or updated. This action can make other instances of the same PublishingWeb stale. The IncludeInNavigation or ExcludeFromNavigation methods may perform better when showing or hiding several children of the same parent.
To save changes after setting this property, call the Update method.