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(); }