item.BreakRoleInheritance(true);//断开继承
SPRoleDefinition principal= DeploymentHelper.FindRoleDefinition(web,"权限级别名");//获取权限级别
item.RoleAssignments.Remove(principal);//删除权限
item.Update();
item.RoleAssignments.Add(principal);//添加权限
item.Update();
item.BreakRoleInheritance(true);//断开继承
SPRoleDefinition principal= DeploymentHelper.FindRoleDefinition(web,"权限级别名");//获取权限级别
item.RoleAssignments.Remove(principal);//删除权限
item.Update();
item.RoleAssignments.Add(principal);//添加权限
item.Update();
转载于:https://www.cnblogs.com/jindahao/archive/2012/04/26/2469446.html