Share via


PortalNavigation.CurrentIncludePages property

Gets or sets whether publishing pages in this site will be automatically included in its current navigation.

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

Syntax

'Declaration
Public Property CurrentIncludePages As Boolean
    Get
    Set
'Usage
Dim instance As PortalNavigation
Dim value As Boolean

value = instance.CurrentIncludePages

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

Property value

Type: System.Boolean
true if pages are automatically included in current navigation; otherwise, false.

Remarks

This property affects only a valid publishing site with a Pages list. To save changes after setting this property, call the Update() method.

See also

Reference

PortalNavigation class

PortalNavigation members

Microsoft.SharePoint.Publishing.Navigation namespace