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)

public bool InheritGlobal { get; set; }

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.