AreaGroup Class

NOTE: This API is now obsolete.

Manages groups of areas.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Portal.SiteData.AreaGroup

Namespace:  Microsoft.SharePoint.Portal.SiteData
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<ObsoleteAttribute("This class is obsolete.")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class AreaGroup
'Usage
Dim instance As AreaGroup
[ObsoleteAttribute("This class is obsolete.")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class AreaGroup

Examples

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

// Get the default group.
AreaGroup groupDefault = groupsTopics[AreaGroup.DefaultGroupID];

// Add an area listing to the default group.
AreaListing listingNew = groupDefault.AddListing("New Listing Title",
"New Listing Description",
ListingType.ExternalUrl,
"http://example.com",
new Guid[] { });
listingNew.Update(); // Complete the creation
.
// Get a list of items you can iterate over.
IList list = groupDefault.GetListings(true);

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

AreaGroup Members

Microsoft.SharePoint.Portal.SiteData Namespace