AreaGroupCollection 类 (Microsoft.SharePoint.Portal.SiteData)

已过时。  

Manages area groups.

命名空间: Microsoft.SharePoint.Portal.SiteData
程序集: Microsoft.SharePoint.Portal (在 microsoft.sharepoint.portal.dll 中)

语法

声明
<ObsoleteAttribute("This class is obsolete.")> _
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public Class AreaGroupCollection
    Implements IEnumerable
用法
Dim instance As AreaGroupCollection
[ObsoleteAttribute("This class is obsolete.")] 
[DefaultMemberAttribute("Item")] 
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
public class AreaGroupCollection : IEnumerable

备注

The order of the groups in the collection is the order of the groups as they appear in the area.

示例

The following code example shows the use of the AreaGroupCollection class.

// Get the default group.
AreaGroupCollection groupsTopics = areaTopics.Groups;

// Add a new group.
int idNewGroup = groupsTopics.Add("NewGroup");

// Iterate over the groups and remove the new one.
foreach (AreaGroup group in groupsTopics)
{
if (idNewGroup == group.GroupID)
  {
  groupsTopics.Remove(group);
   break;
  }
}

继承层次结构

System.Object
  Microsoft.SharePoint.Portal.SiteData.AreaGroupCollection

线程安全性

此类型的任何公共静态( Visual Basic 中共享)成员是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

参考

AreaGroupCollection 成员
Microsoft.SharePoint.Portal.SiteData 命名空间