在 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的跨网站用户组。
为什么这样?我一时也还没有搞懂。希望大家来研究。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-01-16
  • 2021-10-13
  • 2017-12-22
  • 2021-08-04
猜你喜欢
  • 2021-06-12
  • 2021-12-07
  • 2022-12-23
  • 2021-07-17
  • 2021-07-22
  • 2021-09-29
  • 2022-12-23
相关资源
相似解决方案