AreaCollection.AddArea Method (String, String, String, SPSite)

NOTE: This API is now obsolete.

Adds an area.

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


<ObsoleteAttribute("This class is obsolete.")> _
Public Function AddArea ( _
    strCatName As String, _
    strWebName As String, _
    strTemplate As String, _
    site As SPSite _
) As Area
Dim instance As AreaCollection
Dim strCatName As String
Dim strWebName As String
Dim strTemplate As String
Dim site As SPSite
Dim returnValue As Area

returnValue = instance.AddArea(strCatName, _
    strWebName, strTemplate, site)
[ObsoleteAttribute("This class is obsolete.")]
public Area AddArea(
    string strCatName,
    string strWebName,
    string strTemplate,
    SPSite site


Return Value

Type: Microsoft.SharePoint.Portal.SiteData.Area
The Area object that is added.


To create a keyword, set the strTemplate parameter equal to NULL, and call the AddCategory method.

See Also


AreaCollection Class

AreaCollection Members

AddArea Overload

Microsoft.SharePoint.Portal.SiteData Namespace