Share via


PublishingWeb.InheritGlobalNavigation property

NOTE: This API is now obsolete.

Gets or sets a value that indicates 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
<ObsoleteAttribute("Use PublishingWeb.Navigation.InheritGlobal instead.")> _
Public Property InheritGlobalNavigation As Boolean
    Get
    Set
'Usage
Dim instance As PublishingWeb
Dim value As Boolean

value = instance.InheritGlobalNavigation

instance.InheritGlobalNavigation = value
[ObsoleteAttribute("Use PublishingWeb.Navigation.InheritGlobal instead.")]
public bool InheritGlobalNavigation { get; set; }

Property value

Type: System.Boolean
A 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 top-level 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.

See also

Reference

PublishingWeb class

PublishingWeb members

Microsoft.SharePoint.Publishing namespace

PortalSiteMapProvider

NavigationType