Acceleratio.SPDG.Generator.Client.SPModel.SPDGClientWeb.BreakRoleInheritance C# (CSharp) Method

BreakRoleInheritance() public method

public BreakRoleInheritance ( bool copyRoleAssignments ) : void
copyRoleAssignments bool
return void
        public override void BreakRoleInheritance(bool copyRoleAssignments)
        {
            if (_web.Id == _site.RootWeb.ID)
            {
                return;
            }
            _web.BreakRoleInheritance(copyRoleAssignments,false);
            _context.Load(_web,x=>x.HasUniqueRoleAssignments);
            _context.ExecuteQuery();
        }