AreaGroupCollection Class
The AreaGroupCollection class manages area groups.
System.Object
Microsoft.SharePoint.Portal.SiteData.AreaGroupCollection
Public Methods
The following table shows the methods of the AreaGroupCollection class and a brief description of each.
| Name | Description |
|---|---|
| Add(String) | Creates an area listing group and adds it to the end of the collection. |
| GetEnumerator | Gets an enumerator for the area groups. |
| GetGroupByID(Int32) | Gets an area group by identifier. |
| IndexOf(Microsoft.SharePoint.Portal.SiteData.AreaGroup) | Gets the index of the area group. |
| InsertAt(Microsoft.SharePoint.Portal.SiteData.AreaGroup, Int32) | Changes the order of the groups by moving the group to a specified location. |
| InsertAt(String, Int32) | Creates an area listing group at a specified location. |
| Remove(Microsoft.SharePoint.Portal.SiteData.AreaGroup) | Removes an area group from the collection. |
| RemoveAt(Int32) | Removes an area group at a specified location. |
Public Properties
The following table shows the properties of the AreaGroupCollection class, the data type of each property, and a brief description of each.
| Name | Data Type | Description |
|---|---|---|
| Count | Int32 | Gets the count of area groups. |
| Item(Int32) | Microsoft.SharePoint.Portal.SiteData.AreaGroup | Gets the indexer. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
Remarks
The order of the groups in the collection is the order of the groups as they appear in the area.
Example
The following code example shows the use of the AreaGroupCollection class.
Requirements
Namespace: Microsoft.SharePoint.Portal.SiteData
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security