SPListItem.BreakRoleInheritance Method

Creates unique role assignments for the item rather than inheriting them from a parent.

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

Syntax

Public Sub BreakRoleInheritance ( _
    CopyRoleAssignments As Boolean _
)

Dim instance As SPListItem
Dim CopyRoleAssignments As Boolean

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

Parameters

  • CopyRoleAssignments
    Type: System.Boolean
    true to break role inheritance but to copy the role assignments; otherwise, false.

Implements

ISecurableObject.BreakRoleInheritance(Boolean)

See Also

Reference

SPListItem Class

SPListItem Members

Microsoft.SharePoint Namespace