Compartilhar via


PortalNavigation.IncludeInNavigation Method

Explicitly includes a specific subsite or page for display in navigation.

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

Syntax

'Declaration
Public Sub IncludeInNavigation ( _
    useGlobal As Boolean, _
    item As Guid _
)
'Usage
Dim instance As PortalNavigation
Dim useGlobal As Boolean
Dim item As Guid

instance.IncludeInNavigation(useGlobal, _
    item)
public void IncludeInNavigation(
    bool useGlobal,
    Guid item
)

Parameters

  • useGlobal
    Type: System.Boolean

    A Boolean value that controls whether global or current navigation is affected.

  • item
    Type: System.Guid

    GUID representing the unique ID of the item to include.

Remarks

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

See Also

Reference

PortalNavigation Class

PortalNavigation Members

Microsoft.SharePoint.Publishing.Navigation Namespace