SPList.BreakRoleInheritance - Méthode (Boolean, Boolean)
Creates unique role assignments for the list from the parent, optionally copies roles assignments from the parent, and optionally clears unique role assignments from descendants.
Espace de noms : Microsoft.SharePoint
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Overrides Sub BreakRoleInheritance ( _
copyRoleAssignments As Boolean, _
clearSubscopes As Boolean _
)
'Utilisation
Dim instance As SPList
Dim copyRoleAssignments As Boolean
Dim clearSubscopes As Boolean
instance.BreakRoleInheritance(copyRoleAssignments, _
clearSubscopes)
public override void BreakRoleInheritance(
bool copyRoleAssignments,
bool clearSubscopes
)
Paramètres
copyRoleAssignments
Type : System.Booleantrue if role assignments are copied from the parent object to this object; false if only the current user is assigned to security roles.
clearSubscopes
Type : System.Booleantrue if unique permissions are cleared from child objects and they can inherit role assignments from this object; false if unique role assignments defined on child objects are left in place.