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)
Syntax
'Declaration
Public Property InheritGlobalNavigation As Boolean
Get
Set
'Usage
Dim instance As PublishingWeb
Dim value As Boolean
value = instance.InheritGlobalNavigation
instance.InheritGlobalNavigation = value
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.
Remarks
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.