Share via


PublishingWeb.IncludePagesInNavigation Property

Determines whether to automatically include pages in navigation.

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

Syntax

'Declaration
Public Property IncludePagesInNavigation As Boolean
    Get
    Set
'Usage
Dim instance As PublishingWeb
Dim value As Boolean

value = instance.IncludePagesInNavigation

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

Property Value

Type: System.Boolean
Boolean value representing whether to automatically include pages in navigation.
Set to True if the PublishingPages of this PublishingWeb should appear in navigation; otherwise, set to False.

Remarks

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

Reference

PublishingWeb Class

PublishingWeb Members

Microsoft.SharePoint.Publishing Namespace