다음을 통해 공유


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)

Syntax

'Declaration
Public Property InheritGlobal As Boolean
    Get
    Set
'Usage
Dim instance As PortalNavigation
Dim value As Boolean

value = instance.InheritGlobal

instance.InheritGlobal = value
public bool InheritGlobal { get; set; }

Property Value

Type: System.Boolean
Returns Boolean.

Remarks

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.

See Also

Reference

PortalNavigation Class

PortalNavigation Members

Microsoft.SharePoint.Publishing.Navigation Namespace