다음을 통해 공유


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)

Syntax

'Declaration
<ObsoleteAttribute("Use PublishingWeb.Navigation.GlobalIncludePages/CurrentIncludePages instead.")> _
Public Property IncludePagesInNavigation As Boolean
    Get
    Set
'Usage
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.

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