AreaCollection.AddArea, méthode (String, String, String, SPSite) (Microsoft.SharePoint.Portal.SiteData)
Adds an area.
Espace de noms : Microsoft.SharePoint.Portal.SiteData
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)
Syntaxe
'Déclaration
Public Function AddArea ( _
strCatName As String, _
strWebName As String, _
strTemplate As String, _
site As SPSite _
) As Area
'Utilisation
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)
public Area AddArea (
string strCatName,
string strWebName,
string strTemplate,
SPSite site
)
Paramètres
- strCatName
The name of the area.
- strWebName
The Web site.
- strTemplate
The area template.
- site
The site. This SPSite object must be the top-level site of this portal.
Valeur de retour
The Area object that is added.
Remarques
To create a keyword, set the strTemplate parameter equal to NULL, and call the AddCategory method.
Voir aussi
Référence
AreaCollection, classe
Membres AreaCollection
Microsoft.SharePoint.Portal.SiteData, espace de noms