다음을 통해 공유


PortalNavigation.InheritCurrent Property

Controls whether the associated site should display its own current navigation or should use the current navigation of its parent.

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

Syntax

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

value = instance.InheritCurrent

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

Property Value

Type: System.Boolean
Returns Boolean.

Remarks

Set to true to display the same current navigation as the parent of this site. Set to false to displaythe navigation items from this site.This property affects the starting node for current navigation. By default, sites do not inherit current navigation, anchoring the starting node at the current site.To save changes after setting this property, call the PublishingWeb.Update method.

See Also

Reference

PortalNavigation Class

PortalNavigation Members

Microsoft.SharePoint.Publishing.Navigation Namespace