Area Class

NOTE: This API is now obsolete.

Represents an area.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Portal.SiteData.Area

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

Syntax

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

Remarks

Web sites with duplicate titles are allowed in Microsoft Office SharePoint Server 2007; SharePoint Portal Server 2003 did not allow duplicate titles. AreaDuplicationException is therefore not thrown in Office SharePoint Server 2007.

Also, you should call the Area.Web.Close method for console applications written against the Microsoft Office SharePoint Portal Server 2003 object model. Your application might run out of memory if it does not call Area.Web.Close().This call is not needed for Web Parts and controls.

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

Area Members

Microsoft.SharePoint.Portal.SiteData Namespace