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)

'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)

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.

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

Show: