AddArea(String, String, String, Microsoft.SharePoint.SPSite) Method

The AddArea method of the AreaCollection class adds an area.

Parameters

strCatName The name of area.

strWebName The Web.

strTemplate The area template.

site The site. This SPSite must be the root site of this portal.

Return Value

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.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security