Condividi tramite


SPWeb.HasUniquePerm Property

NOTE: This API is now obsolete.

Gets or sets a Boolean value that specifies whether the site has unique permissions.

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

Syntax

'Declaration
<ObsoleteAttribute("Use the HasUniqueRoleAssignments property or BreakRoleInheritance() and ResetRoleInheritance() methods instead")> _
Public Property HasUniquePerm As Boolean
    Get
    Set
'Usage
Dim instance As SPWeb
Dim value As Boolean

value = instance.HasUniquePerm

instance.HasUniquePerm = value
[ObsoleteAttribute("Use the HasUniqueRoleAssignments property or BreakRoleInheritance() and ResetRoleInheritance() methods instead")]
public bool HasUniquePerm { get; set; }

Property Value

Type: System.Boolean
true if the website has unique permissions; otherwise, false.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace