摘要:
SPRoleAssignmentCollectionras=list.RoleAssignments;foreach(SPRoleAssignmentrainras){.....SPRoleAssignmentnewRoleAssignment=newSPRoleAssignment((SPPrincipal)list.ParentWeb.EnsureUser("domain\user"));SPRoleDefinitionnewRoleDefinition=list.ParentWeb.RoleDefinitions["参与"];newRoleAssi 阅读全文
posted @ 2011-04-02 17:33 木头人Ricky 阅读(723) 评论(0) 推荐(0) 编辑