PublishingWeb.IncludePagesInNavigation property

NOTE: This API is now obsolete.

Gets or sets a value that indicates whether to automatically include pages in navigation.

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


<ObsoleteAttribute("Use PublishingWeb.Navigation.GlobalIncludePages/CurrentIncludePages instead.")> _
Public Property IncludePagesInNavigation As Boolean
Dim instance As PublishingWeb
Dim value As Boolean

value = instance.IncludePagesInNavigation

instance.IncludePagesInNavigation = value
[ObsoleteAttribute("Use PublishingWeb.Navigation.GlobalIncludePages/CurrentIncludePages instead.")]
public bool IncludePagesInNavigation { get; set; }

Property value

Type: System.Boolean
A Boolean value representing whether to automatically include pages in navigation.
Set to true if the PublishingPage objects of this PublishingWeb should appear in navigation; otherwise, set to false.


This property affects only a valid PublishingWeb object that has a Pages list.

To save changes after setting this property, call the Update method.

See also


PublishingWeb class

PublishingWeb members

Microsoft.SharePoint.Publishing namespace