Public Sub BreakRoleInheritance ( _ CopyRoleAssignments As Boolean _ )
Dim instance As SPWeb Dim CopyRoleAssignments As Boolean instance.BreakRoleInheritance(CopyRoleAssignments)
public void BreakRoleInheritance ( bool CopyRoleAssignments )
true to break role inheritance but to copy the role assignments; otherwise, false to make the current user a Web site administrator.
If the current Web site is the root Web site in the site collection, the BreakRoleInheritance method throws an exception.