SPList.BreakRoleInheritance Method

Breaks the role assignment inheritance for the list and gives the current list its own copy of the role assignments.

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

Syntax

Public Sub BreakRoleInheritance ( _
    CopyRoleAssignments As Boolean _
)

Dim instance As SPList
Dim CopyRoleAssignments As Boolean

instance.BreakRoleInheritance(CopyRoleAssignments)
public void BreakRoleInheritance(
    bool CopyRoleAssignments
)

Parameters

  • CopyRoleAssignments
    Type: System.Boolean
    true to copy the role assignments of the parent Web site when breaking inheritance; false to add the current user to the permission level that is required to manage the list.

Implements

ISecurableObject.BreakRoleInheritance(Boolean)

See Also

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace