Export (0) Print
Expand All

SPSecurableObject.BreakRoleInheritance method (Boolean, Boolean)

Creates unique role assignments for the object, optionally copies role assignments from the parent, and optionally clears unique role assignments from descendants.

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

public virtual void BreakRoleInheritance(
	bool copyRoleAssignments,
	bool clearSubscopes
)

Parameters

copyRoleAssignments
Type: System.Boolean

true to copy the role assignments from the parent object to this object; false to assign only the current user to security roles.

clearSubscopes
Type: System.Boolean

true to clear the unique role assignments from child objects, which in turn inherit role assignments from this object; false to keep the unique role assignments defined on child objects in place.

This method replaces the default role assignments that the securable object inherits from its parent object with unique role assignments.

Show:
© 2014 Microsoft