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)
Syntax
'Declaration
<ObsoleteAttribute("This class is obsolete.")> _
Public Function AddArea ( _
strCatName As String, _
strWebName As String, _
strTemplate As String, _
site As SPSite _
) As Area
'Usage
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
)
Parameters
- strCatName
Type: System.String
The name of the area.
- strWebName
Type: System.String
The Web site.
- strTemplate
Type: System.String
The area template.
- site
Type: Microsoft.SharePoint.SPSite
The site. This SPSite object must be the top-level site of this portal.
Return Value
Type: Microsoft.SharePoint.Portal.SiteData.Area
The Area object that is added.
Remarks
To create a keyword, set the strTemplate parameter equal to NULL, and call the AddCategory method.