SPSecurableObject.HasUniqueRoleAssignments Property

Indicates whether the object has unique role assignments or inherits its role assignments from a parent object.

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

Syntax

'Declaration
<ClientCallablePropertyAttribute(ExcludeFromDefaultRetrieve := True)> _
Public Overridable ReadOnly Property HasUniqueRoleAssignments As Boolean
    Get
'Usage
Dim instance As SPSecurableObject
Dim value As Boolean

value = instance.HasUniqueRoleAssignments
[ClientCallablePropertyAttribute(ExcludeFromDefaultRetrieve = true)]
public virtual bool HasUniqueRoleAssignments { get; }

Property Value

Type: System.Boolean
true if the role assignments are defined directly on the current object; otherwise false.

Implements

ISecurableObject.HasUniqueRoleAssignments

Remarks

If this property returns false, then role assignments are inherited from a parent object. In that case, you can access the FirstUniqueAncestorSecurableObject property to get the object from which the current object inherits role assignments.

See Also

Reference

SPSecurableObject Class

SPSecurableObject Members

Microsoft.SharePoint Namespace