Share via


SPSite.ShowURLStructure Property

Indicates whether to show the site collection URL structure.

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

Syntax

'Declaration
<ClientCallableAttribute(Name := "ShowUrlStructure")> _
Public Property ShowURLStructure As Boolean
    Get
    Set
'Usage
Dim instance As SPSite
Dim value As Boolean

value = instance.ShowURLStructure

instance.ShowURLStructure = value
[ClientCallableAttribute(Name = "ShowUrlStructure")]
public bool ShowURLStructure { get; set; }

Property Value

Type: System.Boolean
A Boolean value depending on what the behavior should be for the current user. The default value is false if the property is not disabled on the web application.

Remarks

Warning

A UnauthorizedAccessException is thrown when attempting to set the property if either the user is not a Site Collection administrator or the setting is disabled at the web application level. See ShowUrlStructureForCurrentUser, which is the method for determining what current user behavior should be.

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace