PortalNavigation.ExcludeFromNavigation Method

Explicitly excludes a specific subsite or page from being displayed in navigation.

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

Syntax

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

instance.ExcludeFromNavigation(useGlobal, _
    item)
public void ExcludeFromNavigation(
    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 exclude.

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