Partager via


AreaGroupCollection, classe (Microsoft.SharePoint.Portal.SiteData)

Obsolète.  

Manages area groups.

Espace de noms : Microsoft.SharePoint.Portal.SiteData
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
<ObsoleteAttribute("This class is obsolete.")> _
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public Class AreaGroupCollection
    Implements IEnumerable
'Utilisation
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

Remarques

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

Exemple

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;
  }
}

Hiérarchie d'héritage

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

Sécurité des threads

Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.

Voir aussi

Référence

Membres AreaGroupCollection
Microsoft.SharePoint.Portal.SiteData, espace de noms