现在的位置: 首页 > 综合 > 正文

Groups And SiteGroups

2012年07月20日 ⁄ 综合 ⁄ 共 447字 ⁄ 字号 评论关闭
在 Microsoft Windows SharePoint Services Software Development Kit 中对SPWeb属性Groups和SiteGroups的说明分别如下:

The SiteGroups property of the SPWeb class gets the collection of cross-site groups for the site collection.

The Groups property of the SPWeb class gets the collection of cross-site groups for the site.

但是,我却发现,在RootWeb中添加的一个跨网站用户组——MyUsers。在RootWeb.Groups中就得不到(准确说是空的),只有通过SiteGroups才能得到。
这和我原本理解的有教大差异:通过Groups可以获得本Web的跨网站用户组,通过SiteGroups可以获得Site Collection的跨网站用户组。
为什么这样?我一时也还没有搞懂。希望大家来研究。

抱歉!评论已关闭.