PublishingWeb.InheritGlobalNavigation Property

Controls whether this PublishingWeb object should display its own global navigation or should use the global navigation of its parent.

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

public bool InheritGlobalNavigation { get; set; }

Property Value

Type: System.Boolean
Boolean value that represents whether this Web should inherit its global navigation.
Set to True if the parent of this PublishingWeb object should be used as the root for the global navigation; otherwise, it is set to False.

This property wraps the UseShared property.

The root Web site cannot inherit its global navigation. Most PublishingWeb objects that are not root Web sites inherit global navigation.

This property affects the starting node for global navigation. By default, global navigation starts at the root Web site, so this Web site and those beneath it are displayed even when a user is visiting a Web site further down the hierarchy.

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

Community Additions

ADD
Show: