共用方式為


SPNavigation.UseShared Property

Gets or sets a Boolean value specifying whether the Web site inherits navigation.

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property UseShared As Boolean
    Get
    Set
'Usage
Dim instance As SPNavigation
Dim value As Boolean

value = instance.UseShared

instance.UseShared = value
[ClientCallableAttribute]
public bool UseShared { get; set; }

Property Value

Type: System.Boolean
Returns true if the Web site inherits navigation; otherwise returns false.

Remarks

If you change settings, the new settings takes effect immediately and does not require a call to the Update method.

Note

This property cannot be set to true on the root Web site of a site collection.

See Also

Reference

SPNavigation Class

SPNavigation Members

Microsoft.SharePoint.Navigation Namespace