Export (0) Print
Expand All

PortalNavigation.InheritGlobal property

Controls whether the associated site should display its own global navigation or whether it should use the global navigation of its parent.

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

'Declaration
PublicPropertyInheritGlobalAsBooleanGetSet
'Usage
DiminstanceAsPortalNavigationDimvalueAsBooleanvalue = instance.InheritGlobal

instance.InheritGlobal = value

Property value

Type: System.Boolean
Returns Boolean.

Set to true to display the same global navigation as the parent of this site. Set to false to establisha new global navigation root for all sites beneath this one.This property affects the starting node for global navigation. By default, all non-root sites inherit global navigation, anchoring the starting node at the root site. This way, the root site and those beneath it are displayed even when a user is visiting a site further down the hierarchy. Setting this value to false on a specific sub site will cause global navigation to be re-anchored for this site and any beneath it.To save changes after setting this property, call the PublishingWeb.Update method.This property is a pass-through to the SPNavigation.UseShared property.

Community Additions

Show:
© 2014 Microsoft