Share via


Navigation.UseShared property

Gets or sets a value that specifies whether the site inherits navigation.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Property UseShared As Boolean
    Get
    Set
'Usage
Dim instance As Navigation
Dim value As Boolean

value = instance.UseShared

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

Property value

Type: System.Boolean
Returns Booleantrue if the site inherits navigation; otherwise, returns false. The default value is .

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

Set to true on the root site. Error code: -2146232832.

See also

Reference

Navigation class

Navigation members

Microsoft.SharePoint.Client namespace