我们可以将 an 添加SPUser到SPGroupbyobjSPGroup.Users.Add(objSPUser)中。我需要添加SPUserCollection到一个SPGroup.
我该怎么做?
1057 次
1 回答
2
SPGroup 实际上包含一个SPUserCollection对象,表示包含用户。我不明白你怎么能超载这个。也没有任何方法可以将完整的 SPUserCollection 添加到SPGroup.
我认为您最好做的是遍历SPUserCollection.GetCollection(MSDN 参考)用户并将它们一一添加到您的SPGroup
于 2010-12-20T06:47:15.003 回答